Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Nov 27, 2023
1 parent 0a5ed7a commit 9e1ec8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion defaultActions.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ func ActionCobra(f func(cmd *cobra.Command, args []string, toComplete string) ([
case f == nil:
return ActionValues()
case c.cmd == nil:
return ActionMessage("cmd is nil [ActionCobra]")
return ActionMessage("cmd is nil [ActionCobra]") // TODO shall this be allowed? (might happen when invoked with custom context)
}
values, directive := f(c.cmd, c.cmd.Flags().Args(), c.Value)
return compDirective(directive).ToA(values...)
Expand Down

0 comments on commit 9e1ec8b

Please sign in to comment.