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">
This commit is contained in:
Serge Smertin 2023-11-08 09:29:22 +01:00 committed by GitHub
parent f07832746b
commit 7509e4d55a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ func initProgressLoggerFlag(cmd *cobra.Command, logFlags *logFlags) *progressLog
f.Set(v) f.Set(v)
} }
cmd.PersistentFlags().Var(&f.ProgressLogFormat, "progress-format", "format for progress logs (append, inplace, json)") flags := cmd.PersistentFlags()
flags.Var(&f.ProgressLogFormat, "progress-format", "format for progress logs (append, inplace, json)")
flags.MarkHidden("progress-format")
cmd.RegisterFlagCompletionFunc("progress-format", f.ProgressLogFormat.Complete) cmd.RegisterFlagCompletionFunc("progress-format", f.ProgressLogFormat.Complete)
return &f return &f
} }