Skip to content

Commit

Permalink
git: add - dash completion
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Jan 5, 2024
1 parent ef55637 commit 7afcacf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions completers/git_completer/cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ func init() {
carapace.Gen(addCmd).PositionalAnyCompletion(
git.ActionChanges(git.ChangeOpts{Unstaged: true}).FilterArgs(),
)

carapace.Gen(addCmd).DashAnyCompletion(
carapace.ActionPositional(addCmd),
)
}

0 comments on commit 7afcacf

Please sign in to comment.