From 541e274e5aa6d3e9840b911b8a0132fac5981e42 Mon Sep 17 00:00:00 2001 From: Igor Lomba <114568996+igorlombacx@users.noreply.github.com> Date: Wed, 11 Oct 2023 15:10:51 +0100 Subject: [PATCH] Printing CLI version if debug is enabled (#595) * printing CLI version if debug is enabled * printing cli version if debug flag is enabled --- internal/commands/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/commands/root.go b/internal/commands/root.go index 43fcd2367..3827576f3 100644 --- a/internal/commands/root.go +++ b/internal/commands/root.go @@ -214,6 +214,7 @@ func requiredFeatureFlagsCheck(cmd *cobra.Command) bool { const configFormatString = "%30v: %s" func PrintConfiguration() { + logger.PrintfIfVerbose("CLI Version: %s", params.Version) logger.PrintIfVerbose("CLI Configuration:") for param := range util.Properties { logger.PrintIfVerbose(fmt.Sprintf(configFormatString, param, viper.GetString(param)))