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

results: use subcommands instead of --action= option #65

Open
padovan opened this issue Dec 13, 2024 · 3 comments
Open

results: use subcommands instead of --action= option #65

padovan opened this issue Dec 13, 2024 · 3 comments

Comments

@padovan
Copy link
Contributor

padovan commented Dec 13, 2024

We want the results cmd to look like kci-dev results summary instead of kci-dev results --action=summary , but we didn't figure out yet how to do that with Python Click.

Related to #57

@aliceinwire
Copy link
Member

aliceinwire commented Dec 15, 2024

why don't use click choice options https://click.palletsprojects.com/en/stable/options/#choice-options
choice options looks like what you need to use instead of having a 'sub sub command' and it make it more clear, as summary is not really a sub command but a choice option
choice options also appear in the help file so that is clear what are the option that can be used

@aliceinwire
Copy link
Member

I will send a draft with this

@aliceinwire
Copy link
Member

Draft: #70

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

2 participants