Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spin --tree or spin --list providing a tree structure of available subcommands and flags in spin cli #2598

Open
me-diru opened this issue Jun 25, 2024 · 3 comments

Comments

@me-diru
Copy link
Contributor

me-diru commented Jun 25, 2024

As we don't yet have auto-completion #1032, it would be better to give a simple top-level flag that outlines the entire Spin CLI for more straightforward navigation and shows how it connected.

@itowlson
Copy link
Contributor

If anyone fancies tackling this, I'd suggest making it a flag on spin help rather than a top-level flag.

image

@calebschoepp
Copy link
Collaborator

I too would prefer it as a flag on spin help rather than adding another top level command.

I'm curious if Clap would support something like this out of the box or if we would need to write a lot of custom code to do something like that.

@itowlson
Copy link
Contributor

@calebschoepp I'm not aware of any out-of-the-box clap feature for this. And assuming custom code is needed, it would be best done as a separate crate in the clap ecosystem, rather than in Spin itself...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants