Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): support no-color option on argo submit. Fixes #13801 #14137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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