Skip to content

Commit

Permalink
feat(cli): add aliases to integration and event cmds
Browse files Browse the repository at this point in the history
To help users access both commands, `integration` and `event`, we are
adding aliases in plural since the natural thing to type when trying to
access all integrations or events is to write the command in plural.

Having aliases will allow users to run:
```
$ lacework events list
$ lacework integrations list
```

Signed-off-by: Salim Afiune Maya <[email protected]>
  • Loading branch information
afiune committed May 7, 2020
1 parent b195ed0 commit 9e8cd5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions cli/cmd/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ import (
var (
// eventCmd represents the event command
eventCmd = &cobra.Command{
Use: "event",
Short: "inspect Lacework events",
Long: `Inspect events reported by the Lacework platform`,
Use: "event",
Aliases: []string{"events"},
Short: "inspect Lacework events",
Long: `Inspect events reported by the Lacework platform`,
}

// eventListCmd represents the list sub-command inside the event command
Expand Down
2 changes: 1 addition & 1 deletion cli/cmd/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var (
// integrationCmd represents the integration command
integrationCmd = &cobra.Command{
Use: "integration",
Aliases: []string{"int"},
Aliases: []string{"integrations", "int"},
Short: "manage external integrations",
Long: `Manage external integrations with the Lacework platform`,
}
Expand Down

0 comments on commit 9e8cd5c

Please sign in to comment.