Skip to content

Commit

Permalink
Merge pull request #501 from rsteube/carapace-positional-completion
Browse files Browse the repository at this point in the history
carapace: added positional completions
  • Loading branch information
rsteube authored Aug 4, 2021
2 parents 2ab2d53 + 50ccf83 commit aa60cf9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion completers/carapace_completer/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ func init() {

carapace.Gen(rootCmd).PositionalCompletion(
ActionCompleters(),
carapace.ActionValues("bash", "elvish", "fish", "oil", "powershell", "xonsh", "zsh"),
carapace.ActionValues("bash", "elvish", "fish", "ion", "nushell", "oil", "powershell", "xonsh", "zsh"),
carapace.ActionValues("_"),
carapace.ActionCallback(func(c carapace.Context) carapace.Action {
return carapace.ActionValues(c.Args[0])
}),
)
}

Expand Down

0 comments on commit aa60cf9

Please sign in to comment.