Skip to content

Commit 7509e4d

Browse files
authored
Hide --progress-format global flag (#965)
## Changes At the moment, these flags are mostly used for VSCode integration for bundles, but they're not effective for the majority of commands. ## Tests <img width="559" alt="image" src="https://github.com/databricks/cli/assets/259697/15ddd322-f746-48ad-b1ce-35c55e664a06">
1 parent f078327 commit 7509e4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/root/progress_logger.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ func initProgressLoggerFlag(cmd *cobra.Command, logFlags *logFlags) *progressLog
5656
f.Set(v)
5757
}
5858

59-
cmd.PersistentFlags().Var(&f.ProgressLogFormat, "progress-format", "format for progress logs (append, inplace, json)")
59+
flags := cmd.PersistentFlags()
60+
flags.Var(&f.ProgressLogFormat, "progress-format", "format for progress logs (append, inplace, json)")
61+
flags.MarkHidden("progress-format")
6062
cmd.RegisterFlagCompletionFunc("progress-format", f.ProgressLogFormat.Complete)
6163
return &f
6264
}

0 commit comments

Comments
 (0)