-
-
Notifications
You must be signed in to change notification settings - Fork 643
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
Support for cli subgoals #13694
Comments
Prior art is that we used to have "nested" scopes, which were dot-separated. So I do wonder whether this is actually justified though: the So cleaning up the support that builtin goals have for subcommands would definitely be welcome. But justifying adding support for subcommands for all user goals would probably require a different motivating usecase. |
Due to the complexity or effort to develop? (I'm halfway through with a POC for this ;) ) Wasn't too difficult (unless there's some unforeseen hurdles ahead) |
Wouldn't mind cleaning up the support for builtin goals first though :) |
The primary concern for me is that combining subcommands with multiple goals (e.g. Meanwhile, builtin commands don't support running multiple goals (so |
Thanks, that makes sense. |
Closing this, as with the |
Is your feature request related to a problem? Please describe.
In order to support a growing number of features, there is a risk of overcrowding the top level list goals.
Describe the solution you'd like
Support grouping related functionality (sub goals) under a common parent goal.
So you can have commands like (from slack thread):
Describe alternatives you've considered
Namespacing goals using a naming standard, such as
group-subgoal
. I think that is sub optimal and not very user friendly solution. It would make it harder to present in help listings, and to request help for a group etc (if any grouping logic is to be applied, or it won't help reduce the overcrowding situation).Additional context
The need for this feature has been suggested in slack here for #13494 and I also envision it could ease the introduction of new features without adding too much noise to the overall list of top level goals (such as managing your list 3rd party requirements for one, #12880).
The text was updated successfully, but these errors were encountered: