Skip to content

Commit

Permalink
docs(cmd): long help message with warning
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
  • Loading branch information
leogr authored and poiana committed Apr 15, 2020
1 parent 9b9d081 commit f680f3d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
12 changes: 10 additions & 2 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,16 @@ const DefaultNamespace = "default"
// NewRun instantiates the run subcommand.
func NewRun() *cobra.Command {
c := &cobra.Command{
Use: "run [regexp]",
Short: "Run actions",
Use: "run [regexp]",
Short: "Run actions",
Long: `Performs a variety of suspect actions.
Without arguments it runs all actions, otherwise only those actions matching the given regular expression.
Warning:
This command might alter your system. For example, some actions modify files and directories below
/bin, /etc, /dev, etc.
Make sure you fully understand what is the purpose of this tool before running any action.
`,
Args: cobra.MaximumNArgs(1),
DisableAutoGenTag: true,
}
Expand Down
10 changes: 9 additions & 1 deletion docs/event-generator_run.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ Run actions

### Synopsis

Run actions
Performs a variety of suspect actions.
Without arguments it runs all actions, otherwise only those actions matching the given regular expression.

Warning:
This command might alter your system. For example, some actions modify files and directories below
/bin, /etc, /dev, etc.
Make sure you fully understand what is the purpose of this tool before running any action.


```
event-generator run [regexp] [flags]
Expand All @@ -28,6 +35,7 @@ event-generator run [regexp] [flags]
-n, --namespace string If present, the namespace scope for this CLI request (default "default")
--request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
-s, --server string The address and port of the Kubernetes API server
--sleep duration time to sleep prior to trigger an action
--token string Bearer token for authentication to the API server
--user string The name of the kubeconfig user to use
```
Expand Down

0 comments on commit f680f3d

Please sign in to comment.