airlift / airline

Java annotation-based framework for parsing Git like command line structures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support sub-groups

mhgrove opened this issue · comments

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.

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

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.

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