Skip to content

Commit

Permalink
feat(cmd/backup): Add --debug-logs flag to show debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejsika committed Jul 29, 2022
1 parent 32ae1a3 commit da95ef9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cmd/backup/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var FlagDisableTelemetry bool
var FlagJsonLogs bool
var FlagExpandEnv bool
var FlagDoBackupV2 bool
var FlagDebugLogs bool

var Cmd = &cobra.Command{
Use: "backup",
Expand All @@ -26,7 +27,7 @@ var Cmd = &cobra.Command{
FlagDisableTelemetry,
CmdFlagExtraName,
FlagJsonLogs,
true,
FlagDebugLogs,
)
return
}
Expand All @@ -36,7 +37,7 @@ var Cmd = &cobra.Command{
FlagDisableTelemetry,
CmdFlagExtraName,
FlagJsonLogs,
true,
FlagDebugLogs,
)
},
}
Expand Down Expand Up @@ -70,6 +71,12 @@ func init() {
false,
"Log output to JSON",
)
Cmd.Flags().BoolVar(
&FlagDebugLogs,
"debug-logs",
false,
"Print debug logs",
)
Cmd.Flags().BoolVar(
&FlagExpandEnv,
"expand-env",
Expand Down

0 comments on commit da95ef9

Please sign in to comment.