From 92ba90955cd72c7f334392f335cb448c2e4b4e8a Mon Sep 17 00:00:00 2001 From: "Kazuma (Pakio) Arimura" Date: Wed, 29 Jan 2025 23:39:03 +0000 Subject: [PATCH] feat: support no-color option on `argo submit` Signed-off-by: Kazuma (Pakio) Arimura --- cmd/argo/commands/submit.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/argo/commands/submit.go b/cmd/argo/commands/submit.go index 73c2d31c4902a..d4be35b7828ca 100644 --- a/cmd/argo/commands/submit.go +++ b/cmd/argo/commands/submit.go @@ -95,6 +95,7 @@ func NewSubmitCommand() *cobra.Command { command.Flags().BoolVar(&cliSubmitOpts.Watch, "watch", false, "watch the workflow until it completes") command.Flags().BoolVar(&cliSubmitOpts.Log, "log", false, "log the workflow until it completes") command.Flags().BoolVar(&cliSubmitOpts.Strict, "strict", true, "perform strict workflow validation") + command.Flags().BoolVar(&common.NoColor, "no-color", false, "Disable colorized output") command.Flags().Int32Var(&priority, "priority", 0, "workflow priority") command.Flags().StringVar(&from, "from", "", "Submit from an existing `kind/name` E.g., --from=cronwf/hello-world-cwf") command.Flags().StringVar(&cliSubmitOpts.GetArgs.Status, "status", "", "Filter by status (Pending, Running, Succeeded, Skipped, Failed, Error). Should only be used with --watch.")