Skip to content

Commit 6db317d

Browse files
authored
chore: show component command in lacework --help (#1660)
* chore: show component command in lacework --help * chore: gitlint
1 parent 2d7d669 commit 6db317d

File tree

8 files changed

+36
-9
lines changed

8 files changed

+36
-9
lines changed

.github/workflows/commit-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install gitlint
1717
shell: bash
1818
run: |
19-
python -m pip install gitlint --break-system-packages
19+
python -m pip install gitlint
2020
2121
- name: Run gitlint
2222
shell: bash

cli/cmd/component.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ var (
4141
// componentsCmd represents the components command
4242
componentsCmd = &cobra.Command{
4343
Use: "component",
44-
Hidden: true,
4544
Aliases: []string{"components"},
4645
Short: "Manage components",
4746
Long: `Manage components to extend your experience with the Lacework platform`,

integration/test_resources/help/component

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ Aliases:
77
component, components
88

99
Available Commands:
10-
install install a new component
11-
list list all components
12-
uninstall uninstall an existing component
13-
update update an existing component
10+
install Install a new component
11+
list List all components
12+
show Show details about a component
13+
uninstall Uninstall an existing component
14+
update Update an existing component
1415

1516
Flags:
1617
-h, --help help for component

integration/test_resources/help/component_install

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Usage:
44
lacework component install <component> [flags]
55

66
Flags:
7-
-h, --help help for install
7+
-h, --help help for install
8+
--version string require a specific version to be installed (default is latest)
89

910
Global Flags:
1011
-a, --account string account subdomain of URL (i.e. <ACCOUNT>.lacework.net)

integration/test_resources/help/component_list

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
List all components
1+
List all available components and their current state
22

33
Usage:
44
lacework component list [flags]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Show details about a component
2+
3+
Usage:
4+
lacework component show <component> [flags]
5+
6+
Flags:
7+
-h, --help help for show
8+
9+
Global Flags:
10+
-a, --account string account subdomain of URL (i.e. <ACCOUNT>.lacework.net)
11+
-k, --api_key string access key id
12+
-s, --api_secret string secret access key
13+
--api_token string access token (replaces the use of api_key and api_secret)
14+
--debug turn on debug logging
15+
--json switch commands output from human-readable to json format
16+
--nocache turn off caching
17+
--nocolor turn off colors
18+
--noninteractive turn off interactive mode (disable spinners, prompts, etc.)
19+
--organization access organization level data sets (org admins only)
20+
-p, --profile string switch between profiles configured at ~/.lacework.toml
21+
--subaccount string sub-account name inside your organization (org admins only)

integration/test_resources/help/component_update

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ Update an existing component
33
Usage:
44
lacework component update <component> [flags]
55

6+
Aliases:
7+
update, upgrade
8+
69
Flags:
7-
-h, --help help for update
10+
-h, --help help for update
11+
--version string update to a specific version (default is latest)
812

913
Global Flags:
1014
-a, --account string account subdomain of URL (i.e. <ACCOUNT>.lacework.net)

integration/test_resources/help/no-command-provided

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Available Commands:
2222
api Helper to call Lacework's API
2323
cloud-account Manage cloud accounts
2424
compliance Manage compliance reports
25+
component Manage components
2526
configure Configure the Lacework CLI
2627
container-registry Manage container registries
2728
generate Generate code to onboard your account

0 commit comments

Comments
 (0)