You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My CLI has a few commands that I'd like to call out for easier discoverability, e.g. login should be listed first. Currently commands are ordered alphabetically, which is a sane default especially when the AddCommand flow is used (since the order is not well-defined with func init()).
Some way to influence the ordering, or even better, having a way to group commands together (similar to option groups) would be nice. For example, in large CLIs you'll often have a set of commands relevant to a particular object type.
The text was updated successfully, but these errors were encountered:
Note that there's semantic grouping in the struct itself (which I'd happily group further if the group struct tags applied), which gets lost in the help text.
My CLI has a few commands that I'd like to call out for easier discoverability, e.g.
login
should be listed first. Currently commands are ordered alphabetically, which is a sane default especially when theAddCommand
flow is used (since the order is not well-defined withfunc init()
).Some way to influence the ordering, or even better, having a way to group commands together (similar to option groups) would be nice. For example, in large CLIs you'll often have a set of commands relevant to a particular object type.
The text was updated successfully, but these errors were encountered: