File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -433,6 +433,8 @@ type Command struct {
433433 ShellCompletionCommandName string `json:"-"`
434434 // The function to call when checking for shell command completions
435435 ShellComplete ShellCompleteFunc `json:"-"`
436+ // The function to configure a shell completion command
437+ ConfigureShellCompletionCommand ConfigureShellCompletionCommand `json:"-"`
436438 // An action to execute before any subcommands are run, but after the context is ready
437439 // If a non-nil error is returned, no subcommands are run
438440 Before BeforeFunc `json:"-"`
@@ -751,6 +753,10 @@ type CommandCategory interface {
751753type CommandNotFoundFunc func(context.Context, *Command, string)
752754 CommandNotFoundFunc is executed if the proper command cannot be found
753755
756+ type ConfigureShellCompletionCommand func(*Command)
757+ ConfigureShellCompletionCommand is a function to configure a shell
758+ completion command
759+
754760type Countable interface {
755761 Count() int
756762}
You can’t perform that action at this time.
0 commit comments