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

Commit 00d816d

Browse files
authored
Merge pull request #103 from srinandan/issue102
Fixes verbose output #102
2 parents 8791f6d + 05519f4 commit 00d816d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cmd/root.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func Execute() {
7373
}
7474

7575
var accessToken, serviceAccount string
76-
var disableCheck, useApigee, noOutput bool
76+
var disableCheck, useApigee, noOutput, verbose bool
7777

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

96+
RootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "",
97+
false, "Enable verbose output from integrationcli")
98+
9699
RootCmd.AddCommand(integrations.Cmd)
97100
RootCmd.AddCommand(preferences.Cmd)
98101
RootCmd.AddCommand(authconfigs.Cmd)
@@ -105,7 +108,7 @@ func initConfig() {
105108
var skipLogInfo = true
106109
var skipCache bool
107110

108-
if os.Getenv("INTEGRATIONCLI_SKIPLOG") == "false" {
111+
if os.Getenv("INTEGRATIONCLI_SKIPLOG") == "false" || verbose {
109112
skipLogInfo = false
110113
}
111114

0 commit comments

Comments
 (0)