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
Following changes are applied:
- the main help command is implemented in a way similar to the other
commands (choice between internal and external variation of the
command is handled with the common handler cmd.RunModuleFunc)
- help for every external command is tied to a command itself over
cmd.SetHelp function rather than add separate help subcommand to
the main help command (it allows to obtain help for internal and
external commands uniformly)
- corresponding Cobra commands are created for all available external
commands rather than only for the invoked one (being combined with
the uniform handling mentioned above it allows to make implementation
of the internal variation of help command trivial)
- external commands are also implemented over the common handler
cmd.RunModuleFunc to reduce code duplication
Close#1136
0 commit comments