Skip to content

Commit

Permalink
chore: Add missing CLI short docstrings (#5175)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Behar <[email protected]>
  • Loading branch information
simster7 authored Feb 23, 2021
1 parent a9c4200 commit 8af3595
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 32 deletions.
3 changes: 2 additions & 1 deletion cmd/argo/commands/archive/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import (

func NewDeleteCommand() *cobra.Command {
command := &cobra.Command{
Use: "delete UID...",
Use: "delete UID...",
Short: "delete a workflow in the archive",
Run: func(cmd *cobra.Command, args []string) {
ctx, apiClient := client.NewAPIClient()
serviceClient, err := apiClient.NewArchivedWorkflowServiceClient()
Expand Down
3 changes: 2 additions & 1 deletion cmd/argo/commands/archive/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import (
func NewGetCommand() *cobra.Command {
var output string
command := &cobra.Command{
Use: "get UID",
Use: "get UID",
Short: "get a workflow in the archive",
Run: func(cmd *cobra.Command, args []string) {
if len(args) != 1 {
cmd.HelpFunc()(cmd, args)
Expand Down
3 changes: 2 additions & 1 deletion cmd/argo/commands/archive/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ func NewListCommand() *cobra.Command {
chunkSize int64
)
command := &cobra.Command{
Use: "list",
Use: "list",
Short: "list workflows in the archive",
Run: func(cmd *cobra.Command, args []string) {
ctx, apiClient := client.NewAPIClient()
serviceClient, err := apiClient.NewArchivedWorkflowServiceClient()
Expand Down
3 changes: 2 additions & 1 deletion cmd/argo/commands/archive/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import (

func NewArchiveCommand() *cobra.Command {
command := &cobra.Command{
Use: "archive",
Use: "archive",
Short: "manage the workflow archive",
Run: func(cmd *cobra.Command, args []string) {
cmd.HelpFunc()(cmd, args)
},
Expand Down
3 changes: 2 additions & 1 deletion cmd/argo/commands/auth/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import (

func NewAuthCommand() *cobra.Command {
command := &cobra.Command{
Use: "auth",
Use: "auth",
Short: "manage authentication settings",
Run: func(cmd *cobra.Command, args []string) {
cmd.HelpFunc()(cmd, args)
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/argo/commands/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func NewServerCommand() *cobra.Command {

command := cobra.Command{
Use: "server",
Short: "Start the Argo Server",
Short: "start the Argo Server",
Example: fmt.Sprintf(`
See %s`, help.ArgoSever),
Run: func(c *cobra.Command, args []string) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/argo/commands/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func NewVersionCommand() *cobra.Command {
var short bool
cmd := cobra.Command{
Use: "version",
Short: "Print version information",
Short: "print version information",
Run: func(cmd *cobra.Command, args []string) {
cmdutil.PrintVersion(CLIName, argo.GetVersion(), short)
if _, ok := os.LookupEnv("ARGO_SERVER"); ok {
Expand Down
8 changes: 4 additions & 4 deletions docs/cli/argo.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ argo [flags]

### SEE ALSO

* [argo archive](argo_archive.md) -
* [argo auth](argo_auth.md) -
* [argo archive](argo_archive.md) - manage the workflow archive
* [argo auth](argo_auth.md) - manage authentication settings
* [argo cluster-template](argo_cluster-template.md) - manipulate cluster workflow templates
* [argo completion](argo_completion.md) - output shell completion code for the specified shell (bash or zsh)
* [argo cron](argo_cron.md) - manage cron workflows
Expand All @@ -114,13 +114,13 @@ argo [flags]
* [argo resubmit](argo_resubmit.md) - resubmit one or more workflows
* [argo resume](argo_resume.md) - resume zero or more workflows
* [argo retry](argo_retry.md) - retry zero or more workflows
* [argo server](argo_server.md) - Start the Argo Server
* [argo server](argo_server.md) - start the Argo Server
* [argo stop](argo_stop.md) - stop zero or more workflows allowing all exit handlers to run
* [argo submit](argo_submit.md) - submit a workflow
* [argo suspend](argo_suspend.md) - suspend zero or more workflow
* [argo template](argo_template.md) - manipulate workflow templates
* [argo terminate](argo_terminate.md) - terminate zero or more workflows immediately
* [argo version](argo_version.md) - Print version information
* [argo version](argo_version.md) - print version information
* [argo wait](argo_wait.md) - waits for workflows to complete
* [argo watch](argo_watch.md) - watch a workflow until it completes

10 changes: 5 additions & 5 deletions docs/cli/argo_archive.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## argo archive


manage the workflow archive

### Synopsis


manage the workflow archive

```
argo archive [flags]
Expand Down Expand Up @@ -50,7 +50,7 @@ argo archive [flags]
### SEE ALSO

* [argo](argo.md) - argo is the command line interface to Argo
* [argo archive delete](argo_archive_delete.md) -
* [argo archive get](argo_archive_get.md) -
* [argo archive list](argo_archive_list.md) -
* [argo archive delete](argo_archive_delete.md) - delete a workflow in the archive
* [argo archive get](argo_archive_get.md) - get a workflow in the archive
* [argo archive list](argo_archive_list.md) - list workflows in the archive

6 changes: 3 additions & 3 deletions docs/cli/argo_archive_delete.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## argo archive delete


delete a workflow in the archive

### Synopsis


delete a workflow in the archive

```
argo archive delete UID... [flags]
Expand Down Expand Up @@ -49,5 +49,5 @@ argo archive delete UID... [flags]

### SEE ALSO

* [argo archive](argo_archive.md) -
* [argo archive](argo_archive.md) - manage the workflow archive

6 changes: 3 additions & 3 deletions docs/cli/argo_archive_get.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## argo archive get


get a workflow in the archive

### Synopsis


get a workflow in the archive

```
argo archive get UID [flags]
Expand Down Expand Up @@ -50,5 +50,5 @@ argo archive get UID [flags]

### SEE ALSO

* [argo archive](argo_archive.md) -
* [argo archive](argo_archive.md) - manage the workflow archive

6 changes: 3 additions & 3 deletions docs/cli/argo_archive_list.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## argo archive list


list workflows in the archive

### Synopsis


list workflows in the archive

```
argo archive list [flags]
Expand Down Expand Up @@ -52,5 +52,5 @@ argo archive list [flags]

### SEE ALSO

* [argo archive](argo_archive.md) -
* [argo archive](argo_archive.md) - manage the workflow archive

4 changes: 2 additions & 2 deletions docs/cli/argo_auth.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## argo auth


manage authentication settings

### Synopsis


manage authentication settings

```
argo auth [flags]
Expand Down
2 changes: 1 addition & 1 deletion docs/cli/argo_auth_token.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ argo auth token [flags]

### SEE ALSO

* [argo auth](argo_auth.md) -
* [argo auth](argo_auth.md) - manage authentication settings

4 changes: 2 additions & 2 deletions docs/cli/argo_server.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## argo server

Start the Argo Server
start the Argo Server

### Synopsis

Start the Argo Server
start the Argo Server

```
argo server [flags]
Expand Down
4 changes: 2 additions & 2 deletions docs/cli/argo_version.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## argo version

Print version information
print version information

### Synopsis

Print version information
print version information

```
argo version [flags]
Expand Down

0 comments on commit 8af3595

Please sign in to comment.