airlift / airline

Java annotation-based framework for parsing Git like command line structures
Apache License 2.0
847 stars 138 forks source link

Support sub-groups #7

Open mhgrove opened 11 years ago

mhgrove commented 11 years ago

git-flow is a nice add-on to git, which uses sub-groups or chains of groups, for example, you can do something like git flow feature start newFeatureName or git flow release finish theReleaseName

I think having these sub groups or chains of groups together makes for a natural CLI, but does not seem to be possible as Cli assumes there is only top level groups -- Cli.withGroup produces a GroupBuilder which itself does not allow another group.

dblevins commented 6 years ago

Hey all. Is there any interest if we were to look into adding this feature?

dain commented 6 years ago

Maybe. Depends on how ugly the CLI and APIs get :) For example, where are the -- options placed in a flow like above? Also, how would the annotations work?

On the other hand, I don't think I have any projects using even the two level git style, so I'm not very tied to the existing grouped system.

rvesse commented 5 years ago

@mhgrove @dblevins If you need this it is fully implemented in my fork though lacking any formal documentation right now