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
In order to simplify help implementation:
- main help command is implemented in a way similar to the other
commands (internal/external variation of help command is handled with
the common handler cmd.RunModuleFunc)
- help for every external command is tied to a command itself over
cmd.SetHelp rather than add separate help subcommand to the main help
command (it allows to get help uniformly for internal and external
commands)
- corresponding Cobra commands are created for all available external
commands rather than only for the invoked one (it is needed for the
uniform handling mentioned above)
In addition:
- completion for help command is improved (also suggested/completed
subcommands, if any)
- external commands are also implemented over the common handler
cmd.RunModuleFunc to reduce code duplication
Close#1136
0 commit comments