refactor: Ignore error on MarkHidden for verbose flag

This commit is contained in:
Denis Bilenko (aider) 2024-12-09 13:15:27 +01:00 committed by Denis Bilenko
parent 583f6f2ac1
commit 9a41b6505b
1 changed files with 1 additions and 3 deletions

View File

@ -38,9 +38,7 @@ func newDeployCommand() *cobra.Command {
}
cmd.Flags().BoolVar(&verbose, "verbose", false, "Enable verbose output.")
// Verbose flag currently only affects file sync output, it's used by the vscode extension
if err := cmd.Flags().MarkHidden("verbose"); err != nil {
return nil
}
_ = cmd.Flags().MarkHidden("verbose")
cmd.RunE = func(cmd *cobra.Command, args []string) error {
ctx := cmd.Context()