diff --git a/drone/build/build_approve.go b/drone/build/build_approve.go index aa8c67b..0b87568 100644 --- a/drone/build/build_approve.go +++ b/drone/build/build_approve.go @@ -9,9 +9,10 @@ import ( ) var buildApproveCmd = cli.Command{ - Name: "approve", - Usage: "approve a build", - Action: buildApprove, + Name: "approve", + Usage: "approve a build", + ArgsUsage: " ", + Action: buildApprove, } func buildApprove(c *cli.Context) (err error) { diff --git a/drone/build/build_decline.go b/drone/build/build_decline.go index 0c1f665..a82db6e 100644 --- a/drone/build/build_decline.go +++ b/drone/build/build_decline.go @@ -9,9 +9,10 @@ import ( ) var buildDeclineCmd = cli.Command{ - Name: "decline", - Usage: "decline a build", - Action: buildDecline, + Name: "decline", + Usage: "decline a build", + ArgsUsage: " ", + Action: buildDecline, } func buildDecline(c *cli.Context) (err error) { diff --git a/drone/build/build_info.go b/drone/build/build_info.go index f8c5ccd..f21c370 100644 --- a/drone/build/build_info.go +++ b/drone/build/build_info.go @@ -10,9 +10,10 @@ import ( ) var buildInfoCmd = cli.Command{ - Name: "info", - Usage: "show build details", - Action: buildInfo, + Name: "info", + Usage: "show build details", + ArgsUsage: " [build]", + Action: buildInfo, Flags: []cli.Flag{ cli.StringFlag{ Name: "format", diff --git a/drone/build/build_last.go b/drone/build/build_last.go index 1bae577..6d9b3f5 100644 --- a/drone/build/build_last.go +++ b/drone/build/build_last.go @@ -9,9 +9,10 @@ import ( ) var buildLastCmd = cli.Command{ - Name: "last", - Usage: "show latest build details", - Action: buildLast, + Name: "last", + Usage: "show latest build details", + ArgsUsage: "", + Action: buildLast, Flags: []cli.Flag{ cli.StringFlag{ Name: "format", diff --git a/drone/build/build_list.go b/drone/build/build_list.go index 052254e..6fb21fc 100644 --- a/drone/build/build_list.go +++ b/drone/build/build_list.go @@ -9,9 +9,10 @@ import ( ) var buildListCmd = cli.Command{ - Name: "list", - Usage: "show build history", - Action: buildList, + Name: "list", + Usage: "show build history", + ArgsUsage: "", + Action: buildList, Flags: []cli.Flag{ cli.StringFlag{ Name: "format", diff --git a/drone/build/build_logs.go b/drone/build/build_logs.go index 89d7890..c07ee14 100644 --- a/drone/build/build_logs.go +++ b/drone/build/build_logs.go @@ -7,9 +7,10 @@ import ( ) var buildLogsCmd = cli.Command{ - Name: "logs", - Usage: "show build logs", - Action: buildLogs, + Name: "logs", + Usage: "show build logs", + ArgsUsage: " [build] [job]", + Action: buildLogs, } func buildLogs(c *cli.Context) error { diff --git a/drone/build/build_queue.go b/drone/build/build_queue.go index a2948f1..57e2540 100644 --- a/drone/build/build_queue.go +++ b/drone/build/build_queue.go @@ -10,9 +10,10 @@ import ( ) var buildQueueCmd = cli.Command{ - Name: "queue", - Usage: "show build queue", - Action: buildQueue, + Name: "queue", + Usage: "show build queue", + ArgsUsage: " ", + Action: buildQueue, Flags: []cli.Flag{ cli.StringFlag{ Name: "format", diff --git a/drone/build/build_start.go b/drone/build/build_start.go index c986789..945e736 100644 --- a/drone/build/build_start.go +++ b/drone/build/build_start.go @@ -11,9 +11,10 @@ import ( ) var buildStartCmd = cli.Command{ - Name: "start", - Usage: "start a build", - Action: buildStart, + Name: "start", + Usage: "start a build", + ArgsUsage: " [build]", + Action: buildStart, Flags: []cli.Flag{ cli.BoolFlag{ Name: "fork", diff --git a/drone/build/build_stop.go b/drone/build/build_stop.go index 243dbcc..c996174 100644 --- a/drone/build/build_stop.go +++ b/drone/build/build_stop.go @@ -9,9 +9,10 @@ import ( ) var buildStopCmd = cli.Command{ - Name: "stop", - Usage: "stop a build", - Action: buildStop, + Name: "stop", + Usage: "stop a build", + ArgsUsage: " [build] [job]", + Action: buildStop, } func buildStop(c *cli.Context) (err error) { diff --git a/drone/deploy/deploy.go b/drone/deploy/deploy.go index 712ba76..f91dd4d 100644 --- a/drone/deploy/deploy.go +++ b/drone/deploy/deploy.go @@ -14,9 +14,10 @@ import ( // Command exports the deploy command. var Command = cli.Command{ - Name: "deploy", - Usage: "deploy code", - Action: deploy, + Name: "deploy", + Usage: "deploy code", + ArgsUsage: " ", + Action: deploy, Flags: []cli.Flag{ cli.StringFlag{ Name: "format", diff --git a/drone/exec/exec.go b/drone/exec/exec.go index 77b4ede..63fa5a2 100644 --- a/drone/exec/exec.go +++ b/drone/exec/exec.go @@ -27,8 +27,9 @@ import ( // Command exports the exec command. var Command = cli.Command{ - Name: "exec", - Usage: "execute a local build", + Name: "exec", + Usage: "execute a local build", + ArgsUsage: "[path/to/.drone.yml]", Action: func(c *cli.Context) { if err := exec(c); err != nil { log.Fatalln(err) diff --git a/drone/info/info.go b/drone/info/info.go index fafb870..3e6047e 100644 --- a/drone/info/info.go +++ b/drone/info/info.go @@ -11,9 +11,10 @@ import ( // Command exports the info command. var Command = cli.Command{ - Name: "info", - Usage: "show information about the current user", - Action: info, + Name: "info", + Usage: "show information about the current user", + ArgsUsage: " ", + Action: info, Flags: []cli.Flag{ cli.StringFlag{ Name: "format", diff --git a/drone/registry/registry_add.go b/drone/registry/registry_add.go index ea4d1df..b13ba06 100644 --- a/drone/registry/registry_add.go +++ b/drone/registry/registry_add.go @@ -11,9 +11,10 @@ import ( ) var registryCreateCmd = cli.Command{ - Name: "add", - Usage: "adds a registry", - Action: registryCreate, + Name: "add", + Usage: "adds a registry", + ArgsUsage: "[repo/name]", + Action: registryCreate, Flags: []cli.Flag{ cli.StringFlag{ Name: "repository", diff --git a/drone/registry/registry_info.go b/drone/registry/registry_info.go index 8e9b217..ef94e70 100644 --- a/drone/registry/registry_info.go +++ b/drone/registry/registry_info.go @@ -10,9 +10,10 @@ import ( ) var registryInfoCmd = cli.Command{ - Name: "info", - Usage: "display registry info", - Action: registryInfo, + Name: "info", + Usage: "display registry info", + ArgsUsage: "[repo/name]", + Action: registryInfo, Flags: []cli.Flag{ cli.StringFlag{ Name: "repository", diff --git a/drone/registry/registry_list.go b/drone/registry/registry_list.go index ff574ff..1d4e80c 100644 --- a/drone/registry/registry_list.go +++ b/drone/registry/registry_list.go @@ -10,9 +10,10 @@ import ( ) var registryListCmd = cli.Command{ - Name: "ls", - Usage: "list regitries", - Action: registryList, + Name: "ls", + Usage: "list regitries", + ArgsUsage: "[repo/name]", + Action: registryList, Flags: []cli.Flag{ cli.StringFlag{ Name: "repository", diff --git a/drone/registry/registry_rm.go b/drone/registry/registry_rm.go index 4d36dbf..d91522e 100644 --- a/drone/registry/registry_rm.go +++ b/drone/registry/registry_rm.go @@ -7,9 +7,10 @@ import ( ) var registryDeleteCmd = cli.Command{ - Name: "rm", - Usage: "remove a registry", - Action: registryDelete, + Name: "rm", + Usage: "remove a registry", + ArgsUsage: "[repo/name]", + Action: registryDelete, Flags: []cli.Flag{ cli.StringFlag{ Name: "repository", diff --git a/drone/registry/registry_set.go b/drone/registry/registry_set.go index a180e99..9e60270 100644 --- a/drone/registry/registry_set.go +++ b/drone/registry/registry_set.go @@ -11,9 +11,10 @@ import ( ) var registryUpdateCmd = cli.Command{ - Name: "update", - Usage: "update a registry", - Action: registryUpdate, + Name: "update", + Usage: "update a registry", + ArgsUsage: "[repo/name]", + Action: registryUpdate, Flags: []cli.Flag{ cli.StringFlag{ Name: "repository", diff --git a/drone/repo/repo_add.go b/drone/repo/repo_add.go index d767e66..378d5c0 100644 --- a/drone/repo/repo_add.go +++ b/drone/repo/repo_add.go @@ -8,9 +8,10 @@ import ( ) var repoAddCmd = cli.Command{ - Name: "add", - Usage: "add a repository", - Action: repoAdd, + Name: "add", + Usage: "add a repository", + ArgsUsage: "", + Action: repoAdd, } func repoAdd(c *cli.Context) error { diff --git a/drone/repo/repo_chown.go b/drone/repo/repo_chown.go index 7df1cbc..1a6203f 100644 --- a/drone/repo/repo_chown.go +++ b/drone/repo/repo_chown.go @@ -8,9 +8,10 @@ import ( ) var repoChownCmd = cli.Command{ - Name: "chown", - Usage: "assume ownership of a repository", - Action: repoChown, + Name: "chown", + Usage: "assume ownership of a repository", + ArgsUsage: "", + Action: repoChown, } func repoChown(c *cli.Context) error { diff --git a/drone/repo/repo_info.go b/drone/repo/repo_info.go index 888e137..f85eead 100644 --- a/drone/repo/repo_info.go +++ b/drone/repo/repo_info.go @@ -9,9 +9,10 @@ import ( ) var repoInfoCmd = cli.Command{ - Name: "info", - Usage: "show repository details", - Action: repoInfo, + Name: "info", + Usage: "show repository details", + ArgsUsage: "", + Action: repoInfo, Flags: []cli.Flag{ cli.StringFlag{ Name: "format", diff --git a/drone/repo/repo_list.go b/drone/repo/repo_list.go index 9995274..3e1ef48 100644 --- a/drone/repo/repo_list.go +++ b/drone/repo/repo_list.go @@ -9,9 +9,10 @@ import ( ) var repoListCmd = cli.Command{ - Name: "ls", - Usage: "list all repos", - Action: repoList, + Name: "ls", + Usage: "list all repos", + ArgsUsage: " ", + Action: repoList, Flags: []cli.Flag{ cli.StringFlag{ Name: "format", diff --git a/drone/repo/repo_repair.go b/drone/repo/repo_repair.go index d4fea6e..1e7f120 100644 --- a/drone/repo/repo_repair.go +++ b/drone/repo/repo_repair.go @@ -6,9 +6,10 @@ import ( ) var repoRepairCmd = cli.Command{ - Name: "repair", - Usage: "repair repository webhooks", - Action: repoRepair, + Name: "repair", + Usage: "repair repository webhooks", + ArgsUsage: "", + Action: repoRepair, } func repoRepair(c *cli.Context) error { diff --git a/drone/repo/repo_rm.go b/drone/repo/repo_rm.go index 7484cee..bc6caf0 100644 --- a/drone/repo/repo_rm.go +++ b/drone/repo/repo_rm.go @@ -9,9 +9,10 @@ import ( ) var repoRemoveCmd = cli.Command{ - Name: "rm", - Usage: "remove a repository", - Action: repoRemove, + Name: "rm", + Usage: "remove a repository", + ArgsUsage: "", + Action: repoRemove, } func repoRemove(c *cli.Context) error { diff --git a/drone/repo/repo_update.go b/drone/repo/repo_update.go index 0da8bc6..515d28b 100644 --- a/drone/repo/repo_update.go +++ b/drone/repo/repo_update.go @@ -11,9 +11,10 @@ import ( ) var repoUpdateCmd = cli.Command{ - Name: "update", - Usage: "update a repository", - Action: repoUpdate, + Name: "update", + Usage: "update a repository", + ArgsUsage: "", + Action: repoUpdate, Flags: []cli.Flag{ cli.BoolFlag{ Name: "trusted", diff --git a/drone/secret/secret_add.go b/drone/secret/secret_add.go index 9eee83d..e40fd0f 100644 --- a/drone/secret/secret_add.go +++ b/drone/secret/secret_add.go @@ -11,9 +11,10 @@ import ( ) var secretCreateCmd = cli.Command{ - Name: "add", - Usage: "adds a secret", - Action: secretCreate, + Name: "add", + Usage: "adds a secret", + ArgsUsage: "[repo/name]", + Action: secretCreate, Flags: []cli.Flag{ cli.StringFlag{ Name: "repository", diff --git a/drone/secret/secret_info.go b/drone/secret/secret_info.go index 20e9d77..c64b2b6 100644 --- a/drone/secret/secret_info.go +++ b/drone/secret/secret_info.go @@ -10,9 +10,10 @@ import ( ) var secretInfoCmd = cli.Command{ - Name: "info", - Usage: "display secret info", - Action: secretInfo, + Name: "info", + Usage: "display secret info", + ArgsUsage: "[repo/name]", + Action: secretInfo, Flags: []cli.Flag{ cli.StringFlag{ Name: "repository", diff --git a/drone/secret/secret_list.go b/drone/secret/secret_list.go index 53b8262..b18beb1 100644 --- a/drone/secret/secret_list.go +++ b/drone/secret/secret_list.go @@ -11,9 +11,10 @@ import ( ) var secretListCmd = cli.Command{ - Name: "ls", - Usage: "list secrets", - Action: secretList, + Name: "ls", + Usage: "list secrets", + ArgsUsage: "[repo/name]", + Action: secretList, Flags: []cli.Flag{ cli.StringFlag{ Name: "repository", diff --git a/drone/secret/secret_rm.go b/drone/secret/secret_rm.go index 8ca5fb0..338fce4 100644 --- a/drone/secret/secret_rm.go +++ b/drone/secret/secret_rm.go @@ -7,9 +7,10 @@ import ( ) var secretDeleteCmd = cli.Command{ - Name: "rm", - Usage: "remove a secret", - Action: secretDelete, + Name: "rm", + Usage: "remove a secret", + ArgsUsage: "[repo/name]", + Action: secretDelete, Flags: []cli.Flag{ cli.StringFlag{ Name: "repository", diff --git a/drone/secret/secret_set.go b/drone/secret/secret_set.go index fdf7c1e..78adbea 100644 --- a/drone/secret/secret_set.go +++ b/drone/secret/secret_set.go @@ -11,9 +11,10 @@ import ( ) var secretUpdateCmd = cli.Command{ - Name: "update", - Usage: "update a secret", - Action: secretUpdate, + Name: "update", + Usage: "update a secret", + ArgsUsage: "[repo/name]", + Action: secretUpdate, Flags: []cli.Flag{ cli.StringFlag{ Name: "repository", diff --git a/drone/user/user_add.go b/drone/user/user_add.go index 28570f1..531fab6 100644 --- a/drone/user/user_add.go +++ b/drone/user/user_add.go @@ -10,9 +10,10 @@ import ( ) var userAddCmd = cli.Command{ - Name: "add", - Usage: "adds a user", - Action: userAdd, + Name: "add", + Usage: "adds a user", + ArgsUsage: "", + Action: userAdd, } func userAdd(c *cli.Context) error { diff --git a/drone/user/user_info.go b/drone/user/user_info.go index c3ad517..a7f3860 100644 --- a/drone/user/user_info.go +++ b/drone/user/user_info.go @@ -11,9 +11,10 @@ import ( ) var userInfoCmd = cli.Command{ - Name: "info", - Usage: "show user details", - Action: userInfo, + Name: "info", + Usage: "show user details", + ArgsUsage: "", + Action: userInfo, Flags: []cli.Flag{ cli.StringFlag{ Name: "format", diff --git a/drone/user/user_list.go b/drone/user/user_list.go index 2de6929..803d5ee 100644 --- a/drone/user/user_list.go +++ b/drone/user/user_list.go @@ -10,9 +10,10 @@ import ( ) var userListCmd = cli.Command{ - Name: "ls", - Usage: "list all users", - Action: userList, + Name: "ls", + Usage: "list all users", + ArgsUsage: " ", + Action: userList, Flags: []cli.Flag{ cli.StringFlag{ Name: "format", diff --git a/drone/user/user_rm.go b/drone/user/user_rm.go index 79cf0d8..b422dc3 100644 --- a/drone/user/user_rm.go +++ b/drone/user/user_rm.go @@ -9,9 +9,10 @@ import ( ) var userRemoveCmd = cli.Command{ - Name: "rm", - Usage: "remove a user", - Action: userRemove, + Name: "rm", + Usage: "remove a user", + ArgsUsage: "", + Action: userRemove, } func userRemove(c *cli.Context) error {