Skip to content

Commit

Permalink
Printing CLI version if debug is enabled (#595)
Browse files Browse the repository at this point in the history
* printing CLI version if debug is enabled

* printing cli version if debug flag is enabled
  • Loading branch information
igorlombacx authored Oct 11, 2023
1 parent 4784b05 commit dc566df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit dc566df

Please sign in to comment.