Commit 3646c4b
committed
✨ Show all provider subcommands
Usually we only show subcommands for providers that are installed.
This offers an alternative where we show all provider subcommands in the
help menu.
eg:
```bash
~ $> cnquery shell --help x1
Allows the interactive exploration of MQL queries.
Usage:
cnquery shell [flags]
cnquery shell [command]
Available Commands:
arista Interactive shell with an Arista EOS device
atlassian Interactive shell with Atlassian
aws Interactive shell with an AWS account
azure Interactive shell with an Azure subscription
container Interactive shell with a running container or container image
docker Interactive shell with a running docker or docker image
equinix Interactive shell with an Equinix Metal organization
filesystem Interactive shell with a mounted file system target.
gcp Interactive shell with a Google Cloud project
github Interactive shell with a GitHub organization or repository
...
```
I still wonder if we should create a custom help for these provider
plugins that is shorter than the current list of defaults. They are
getting a bit out of hand...
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>1 parent 445b71c commit 3646c4b
2 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
163 | 176 | | |
164 | 177 | | |
165 | 178 | | |
| |||
0 commit comments