Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #103 from srinandan/issue102
Browse files Browse the repository at this point in the history
Fixes verbose output #102
  • Loading branch information
srinandan authored Jan 16, 2023
2 parents 8791f6d + 05519f4 commit 00d816d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func Execute() {
}

var accessToken, serviceAccount string
var disableCheck, useApigee, noOutput bool
var disableCheck, useApigee, noOutput, verbose bool

func init() {
cobra.OnInitialize(initConfig)
Expand All @@ -93,6 +93,9 @@ func init() {
RootCmd.PersistentFlags().BoolVarP(&noOutput, "no-output", "",
false, "Disable printing API responses from the control plane")

RootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "",
false, "Enable verbose output from integrationcli")

RootCmd.AddCommand(integrations.Cmd)
RootCmd.AddCommand(preferences.Cmd)
RootCmd.AddCommand(authconfigs.Cmd)
Expand All @@ -105,7 +108,7 @@ func initConfig() {
var skipLogInfo = true
var skipCache bool

if os.Getenv("INTEGRATIONCLI_SKIPLOG") == "false" {
if os.Getenv("INTEGRATIONCLI_SKIPLOG") == "false" || verbose {
skipLogInfo = false
}

Expand Down

0 comments on commit 00d816d

Please sign in to comment.