Skip to content

Commit

Permalink
chore(cli): update usage of commands
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune Maya <[email protected]>
  • Loading branch information
afiune committed Apr 23, 2020
1 parent 410f1ad commit 5dd3057
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cli/cmd/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (
// apiCmd represents the api command
apiCmd = &cobra.Command{
Use: "api <method> <path>",
Short: "Helper to call Lacework's RestfulAPI",
Short: "helper to call Lacework's RestfulAPI",
Long: `Use this command as a helper to call any available Lacework API endpoint.
For example, to list all integrations configured in your account run:
Expand Down
2 changes: 1 addition & 1 deletion cli/cmd/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var (
// configureCmd represents the configure command
configureCmd = &cobra.Command{
Use: "configure",
Short: "Configure the Lacework CLI",
Short: "configure the Lacework CLI",
Args: cobra.NoArgs,
Long: `
Configure settings that the Lacework CLI uses to interact with the Lacework
Expand Down
5 changes: 3 additions & 2 deletions cli/cmd/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ var (
// eventCmd represents the event command
eventCmd = &cobra.Command{
Use: "event",
Short: "Inspect Lacework events",
Short: "inspect Lacework events",
Long: `Inspect events reported by the Lacework platform`,
}

// eventListCmd represents the list sub-command inside the event command
eventListCmd = &cobra.Command{
Use: "list",
Short: "List all events from a date range (default last 7 days)",
Short: "list all events from a date range (default last 7 days)",
Long: `List all events from a data range, by default it displays the last
7 days, but you can specify a different time range.`,
Args: cobra.NoArgs,
Expand Down
12 changes: 6 additions & 6 deletions cli/cmd/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ var (
integrationCmd = &cobra.Command{
Use: "integration",
Aliases: []string{"int"},
Short: "Manage external integrations",
Long: ``,
Short: "manage external integrations",
Long: `Manage external integrations with the Lacework platform`,
}

// integrationListCmd represents the list sub-command inside the integration command
integrationListCmd = &cobra.Command{
Use: "list",
Short: "List all available external integrations",
Short: "list all available external integrations",
Args: cobra.NoArgs,
RunE: func(_ *cobra.Command, _ []string) error {
lacework, err := api.NewClient(cli.Account,
Expand Down Expand Up @@ -73,7 +73,7 @@ var (
integrationCreateCmd = &cobra.Command{
Use: "create",
Hidden: true,
Short: "Create an external integrations",
Short: "create an external integrations",
Args: cobra.NoArgs,
RunE: func(_ *cobra.Command, _ []string) error {
return nil
Expand All @@ -84,7 +84,7 @@ var (
integrationUpdateCmd = &cobra.Command{
Use: "update",
Hidden: true,
Short: "Update an external integrations",
Short: "update an external integrations",
Args: cobra.NoArgs,
RunE: func(_ *cobra.Command, _ []string) error {
return nil
Expand All @@ -95,7 +95,7 @@ var (
integrationDeleteCmd = &cobra.Command{
Use: "delete",
Hidden: true,
Short: "Delete an external integrations",
Short: "delete an external integrations",
Args: cobra.NoArgs,
RunE: func(_ *cobra.Command, _ []string) error {
return nil
Expand Down

0 comments on commit 5dd3057

Please sign in to comment.