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
Dynamic subcommands #5109
Labels
C-enhancement
Category: Raise on the bar on expectations
Comments
I have actually managed to do it. Not the prettiest code, but you can check it out: Disclamer: i am not really that used to rust. As you can see, it's just not my best code.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please complete the following tasks
Clap Version
clap = { version = "4.3.1", features = ["derive"] }
Describe your use case
What i want to do:
In my use case, i want to be able to make the cli adapt to ther user environment.
That means that i want the cli to be able to change depending on what it is fed.
Examples
Describe the solution you'd like
I though about having, for example, a way to read subcommands from a file and feed it to the cli.
For example:
That would look something like this:
Alternatives, if applicable
I though about using clap_serde, which seems to actually fit my requirements. But, in the other hand, seems to be deprecated.
Additional Context
No response
The text was updated successfully, but these errors were encountered: