Skip to content

Commit

Permalink
docs: Add an example field to argo cluster-template create command. F…
Browse files Browse the repository at this point in the history
…ixes #11898 (#12101)

Signed-off-by: shubhamch71 <[email protected]>
Signed-off-by: Shubham <[email protected]>
Co-authored-by: Anton Gilgur <[email protected]>
(cherry picked from commit ae67772)
  • Loading branch information
shubhamch71 authored and agilgur5 committed May 4, 2024
1 parent e4a0bab commit cf91352
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/argo/commands/clustertemplate/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ func NewCreateCommand() *cobra.Command {
command := &cobra.Command{
Use: "create FILE1 FILE2...",
Short: "create a cluster workflow template",
Example: `# Create a Cluster Workflow Template:
argo cluster-template create FILE1
# Create a Cluster Workflow Template and print it as YAML:
argo cluster-template create FILE1 --output yaml
# Create a Cluster Workflow Template with relaxed validation:
argo cluster-template create FILE1 --strict false
`,

Run: func(cmd *cobra.Command, args []string) {
if len(args) == 0 {
cmd.HelpFunc()(cmd, args)
Expand Down
14 changes: 14 additions & 0 deletions docs/cli/argo_cluster-template_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ create a cluster workflow template
argo cluster-template create FILE1 FILE2... [flags]
```

### Examples

```
# Create a Cluster Workflow Template:
argo cluster-template create FILE1
# Create a Cluster Workflow Template and print it as YAML:
argo cluster-template create FILE1 --output yaml
# Create a Cluster Workflow Template with relaxed validation:
argo cluster-template create FILE1 --strict false
```

### Options

```
Expand Down

0 comments on commit cf91352

Please sign in to comment.