mirror of https://github.com/databricks/cli.git
refactor: Ignore error on MarkHidden for verbose flag
This commit is contained in:
parent
583f6f2ac1
commit
9a41b6505b
|
@ -38,9 +38,7 @@ func newDeployCommand() *cobra.Command {
|
||||||
}
|
}
|
||||||
cmd.Flags().BoolVar(&verbose, "verbose", false, "Enable verbose output.")
|
cmd.Flags().BoolVar(&verbose, "verbose", false, "Enable verbose output.")
|
||||||
// Verbose flag currently only affects file sync output, it's used by the vscode extension
|
// Verbose flag currently only affects file sync output, it's used by the vscode extension
|
||||||
if err := cmd.Flags().MarkHidden("verbose"); err != nil {
|
_ = cmd.Flags().MarkHidden("verbose")
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
cmd.RunE = func(cmd *cobra.Command, args []string) error {
|
cmd.RunE = func(cmd *cobra.Command, args []string) error {
|
||||||
ctx := cmd.Context()
|
ctx := cmd.Context()
|
||||||
|
|
Loading…
Reference in New Issue