Skip to content

Commit

Permalink
feat: added example support for artifact command in root.go (argoproj…
Browse files Browse the repository at this point in the history
…#11898)

Signed-off-by: nikzayn <[email protected]>
  • Loading branch information
nikzayn committed Oct 3, 2023
1 parent 26481a2 commit eecce33
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion cmd/argoexec/commands/artifact/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,40 @@ import (

func NewArtifactCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "artifact",
Use: "artifact",
Short: "Implement a new artifact",
Example: `# Initialize a workflow for new artifact:
argo artifact my-wf
# Artifact multiple workflows:
argo artifact my-wf my-other-wf my-third-wf
# Artifact multiple workflows by label selector:
argo artifact -l workflows.argoproj.io/test=true
# Artifact multiple workflows by field selector:
argo artifact --field-selector metadata.namespace=argo
# Artifact and wait for completion:
argo artifact --wait my-wf.yaml
# Artifact and watch until completion:
argo artifact --watch my-wf.yaml
# Artifact and tail logs until completion:
argo artifact --log my-wf.yaml
# Artifact the latest workflow:
argo artifact @latest
`,
}
cmd.AddCommand(NewArtifactDeleteCommand())
return cmd
Expand Down

0 comments on commit eecce33

Please sign in to comment.