Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Sep 25, 2023
1 parent 8713895 commit 5745faa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
func registerValidArgsFunction(cmd *cobra.Command) {
if cmd.ValidArgsFunction == nil {
cmd.ValidArgsFunction = func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
// TODO check storage.hasPositional to prevent loop
action := storage.getPositional(cmd, len(args)).Invoke(Context{Args: args, Value: toComplete})
return cobraValuesFor(action), cobraDirectiveFor(action)
}
Expand Down

0 comments on commit 5745faa

Please sign in to comment.