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 bfe4842 commit 1d929b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func actionCobra(cmd *cobra.Command, f func(cmd *cobra.Command, args []string, t
return ActionValues()
}

c.Args = cmd.Flags().Args() // TODO verify - ensure it contains all args, this might not be correct at all times (e.g. changed Context.Args)
values, directive := f(cmd, c.Args, c.Value)
return compDirective(directive).ToA(values...)
})
Expand Down
2 changes: 0 additions & 2 deletions storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ func (s _storage) getPositional(cmd *cobra.Command, index int) Action {
entry := s.get(cmd)
isDash := common.IsDash(cmd)

// TODO fallback to cobra defined completion if exists

var a Action
switch {
case !isDash && len(entry.positional) > index:
Expand Down

0 comments on commit 1d929b1

Please sign in to comment.