ignore error from MarkDeprecated

This commit is contained in:
Denis Bilenko 2024-12-09 13:19:03 +01:00
parent 8cd405e4e7
commit b34a1e82da
1 changed files with 1 additions and 3 deletions

View File

@ -33,9 +33,7 @@ func newDeployCommand() *cobra.Command {
cmd.Flags().StringVar(&clusterId, "compute-id", "", "Override cluster in the deployment with the given compute ID.") cmd.Flags().StringVar(&clusterId, "compute-id", "", "Override cluster in the deployment with the given compute ID.")
cmd.Flags().StringVarP(&clusterId, "cluster-id", "c", "", "Override cluster in the deployment with the given cluster ID.") cmd.Flags().StringVarP(&clusterId, "cluster-id", "c", "", "Override cluster in the deployment with the given cluster ID.")
cmd.Flags().BoolVar(&autoApprove, "auto-approve", false, "Skip interactive approvals that might be required for deployment.") cmd.Flags().BoolVar(&autoApprove, "auto-approve", false, "Skip interactive approvals that might be required for deployment.")
if err := cmd.Flags().MarkDeprecated("compute-id", "use --cluster-id instead"); err != nil { _ = cmd.Flags().MarkDeprecated("compute-id", "use --cluster-id instead")
return nil
}
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
_ = cmd.Flags().MarkHidden("verbose") _ = cmd.Flags().MarkHidden("verbose")