From 17087ec7dfbc3968fd5e63d5a7cc8b4f0919d9c0 Mon Sep 17 00:00:00 2001 From: Phil Brown Date: Wed, 20 Mar 2024 02:06:30 +1100 Subject: [PATCH] docs(cli): add `stdin` example for `argo submit`. Relates to #926 (#12820) Signed-off-by: Phil Brown --- cmd/argo/commands/submit.go | 4 ++++ docs/cli/argo_submit.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cmd/argo/commands/submit.go b/cmd/argo/commands/submit.go index ef5da1421434..ad097616ee29 100644 --- a/cmd/argo/commands/submit.go +++ b/cmd/argo/commands/submit.go @@ -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 { diff --git a/docs/cli/argo_submit.md b/docs/cli/argo_submit.md index 3c1aa1cdbacd..583fadb5164b 100644 --- a/docs/cli/argo_submit.md +++ b/docs/cli/argo_submit.md @@ -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