nosarthur / gita

Manage many git repos with sanity 从容管理多个git库
MIT License
1.67k stars 73 forks source link

Add sub-commands for `gita group` #94

Closed hamiltont closed 4 years ago

hamiltont commented 4 years ago

IMO the command syntax is confusing - you have to pass a list of groups before you get any indication that a name will be requested. I spent 4-5min reading the help text thinking I was missing something, because there was no indication a name would be requested.

At a minimum, update the help text to say "You will be prompted for the group name". However, ideally you woudl support a --name arg before the positional args, so the entire command could be scripted if needed

nosarthur commented 4 years ago

Thanks for the suggestion. Maybe it's better to add subcommand to gita group such as add, rm, etc

hamiltont commented 4 years ago

A sub-subcommand does make sense - gita group ls, gita group add , etc seems quite clear