Skip to content

Commit 2d6e718

Browse files
authored
feat: add support for listing all sub-commands of a command (#5289)
1 parent e0a918f commit 2d6e718

File tree

1,261 files changed

+2718
-1339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,261 files changed

+2718
-1339
lines changed

cmd/scw/testdata/test-all-usage-account-project-create-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ ARGS:
1111
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
1212

1313
FLAGS:
14-
-h, --help help for create
14+
-h, --help help for create
15+
--list-sub-commands List all subcommands
1516

1617
GLOBAL FLAGS:
1718
-c, --config string The path to the config file

cmd/scw/testdata/test-all-usage-account-project-delete-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ ARGS:
99
[project-id] Project ID to use. If none is passed the default project ID will be used
1010

1111
FLAGS:
12-
-h, --help help for delete
12+
-h, --help help for delete
13+
--list-sub-commands List all subcommands
1314

1415
GLOBAL FLAGS:
1516
-c, --config string The path to the config file

cmd/scw/testdata/test-all-usage-account-project-get-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ ARGS:
99
[project-id] Project ID to use. If none is passed the default project ID will be used
1010

1111
FLAGS:
12-
-h, --help help for get
12+
-h, --help help for get
13+
--list-sub-commands List all subcommands
1314

1415
GLOBAL FLAGS:
1516
-c, --config string The path to the config file

cmd/scw/testdata/test-all-usage-account-project-list-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ ARGS:
1212
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
1313

1414
FLAGS:
15-
-h, --help help for list
15+
-h, --help help for list
16+
--list-sub-commands List all subcommands
1617

1718
GLOBAL FLAGS:
1819
-c, --config string The path to the config file

cmd/scw/testdata/test-all-usage-account-project-update-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ ARGS:
1111
[description] Description of the Project
1212

1313
FLAGS:
14-
-h, --help help for update
14+
-h, --help help for update
15+
--list-sub-commands List all subcommands
1516

1617
GLOBAL FLAGS:
1718
-c, --config string The path to the config file

cmd/scw/testdata/test-all-usage-account-project-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ AVAILABLE COMMANDS:
1313
update Update Project
1414

1515
FLAGS:
16-
-h, --help help for project
16+
-h, --help help for project
17+
--list-sub-commands List all subcommands
1718

1819
GLOBAL FLAGS:
1920
-c, --config string The path to the config file

cmd/scw/testdata/test-all-usage-account-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ AVAILABLE COMMANDS:
99
project Project management commands
1010

1111
FLAGS:
12-
-h, --help help for account
12+
-h, --help help for account
13+
--list-sub-commands List all subcommands
1314

1415
GLOBAL FLAGS:
1516
-c, --config string The path to the config file

cmd/scw/testdata/test-all-usage-alias-create-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ ARGS:
1818
[command] Command to create an alias for
1919

2020
FLAGS:
21-
-h, --help help for create
21+
-h, --help help for create
22+
--list-sub-commands List all subcommands
2223

2324
GLOBAL FLAGS:
2425
-c, --config string The path to the config file

cmd/scw/testdata/test-all-usage-alias-delete-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ ARGS:
99
alias alias name
1010

1111
FLAGS:
12-
-h, --help help for delete
12+
-h, --help help for delete
13+
--list-sub-commands List all subcommands
1314

1415
GLOBAL FLAGS:
1516
-c, --config string The path to the config file

cmd/scw/testdata/test-all-usage-alias-list-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ ARGS:
1111
[alias] filter alias
1212

1313
FLAGS:
14-
-h, --help help for list
14+
-h, --help help for list
15+
--list-sub-commands List all subcommands
1516

1617
GLOBAL FLAGS:
1718
-c, --config string The path to the config file

0 commit comments

Comments
 (0)