mirror of https://github.com/databricks/cli.git
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:
parent
f07832746b
commit
7509e4d55a
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue