DRAFT: ✨ Show all provider subcommands #2266
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Usually we only show subcommands for providers that are installed.
This offers an alternative where we show all provider subcommands in the
help menu.
After #2265
eg:
> cnquery shell --help 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...