Skip to content

Commit

Permalink
Nicer docs for ModifyCobra.
Browse files Browse the repository at this point in the history
  • Loading branch information
doriable committed Oct 9, 2024
1 parent d76eca4 commit da93201
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion private/pkg/app/appcmd/appcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ type Command struct {
// SubCommands are the sub-commands. Optional.
// Must be unset if there is a run function.
SubCommands []*Command
// ModifyCobra is called to modify the Cobra command.
// ModifyCobra allows for any modifications on the Cobra command directly (e.g. sideloading
// a Cobra command).
ModifyCobra func(*cobra.Command) error
// Version the version of the command.
//
Expand Down

0 comments on commit da93201

Please sign in to comment.