Skip to content

Commit

Permalink
docs(cli): add stdin example for argo submit. Relates to argoproj…
Browse files Browse the repository at this point in the history
…#926 (argoproj#12820)

Signed-off-by: Phil Brown <[email protected]>
  • Loading branch information
philBrown authored Mar 19, 2024
1 parent 87899e5 commit 17087ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/argo/commands/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ func NewSubmitCommand() *cobra.Command {
# Submit a single workflow from an existing resource
argo submit --from cronwf/my-cron-wf
# Submit multiple workflows from stdin:
cat my-wf.yaml | argo submit -
`,
Run: func(cmd *cobra.Command, args []string) {
if cmd.Flag("priority").Changed {
Expand Down
4 changes: 4 additions & 0 deletions docs/cli/argo_submit.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ argo submit [FILE... | --from `kind/name] [flags]
argo submit --from cronwf/my-cron-wf
# Submit multiple workflows from stdin:
cat my-wf.yaml | argo submit -
```

### Options
Expand Down

0 comments on commit 17087ec

Please sign in to comment.