Skip to content

Commit

Permalink
feat: support no-color option on argo submit
Browse files Browse the repository at this point in the history
Signed-off-by: Kazuma (Pakio) Arimura <[email protected]>
  • Loading branch information
pakio committed Jan 30, 2025
1 parent 3ae8b31 commit 6bca367
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/argo/commands/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
1 change: 1 addition & 0 deletions docs/cli/argo_submit.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ argo submit [FILE... | --from `kind/name] [flags]
-l, --labels string Comma separated labels to apply to the workflow. Will override previous values.
--log log the workflow until it completes
--name string override metadata.name
--no-color Disable colorized output
--node-field-selector string selector of node to display, eg: --node-field-selector phase=abc
-o, --output string Output format. One of: name|json|yaml|wide
-p, --parameter stringArray pass an input parameter
Expand Down

0 comments on commit 6bca367

Please sign in to comment.