Skip to content

Commit

Permalink
revert ShellCompleteFunc signature func (too early)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Dec 6, 2024
1 parent 935ca59 commit 2cc8480
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import "context"
type ShellCompleteDirective int

// ShellCompleteFunc is an action to execute when the shell completion flag is set
type ShellCompleteFunc func(ctx context.Context, cmd *Command, args []string, toComplete string) ([]string, ShellCompleteDirective)
// type ShellCompleteFunc func(ctx context.Context, cmd *Command, args []string, toComplete string) ([]string, ShellCompleteDirective)

// ShellCompleteFunc is an action to execute when the shell completion flag is set
type ShellCompleteFunc func(context.Context, *Command)

// BeforeFunc is an action that executes prior to any subcommands being run once
// the context is ready. If a non-nil error is returned, no subcommands are
Expand Down

0 comments on commit 2cc8480

Please sign in to comment.