Skip to content

Commit 3985f57

Browse files
committed
added flag completion
1 parent f7f08f1 commit 3985f57

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cmd/carapace-shlex/cmd/root.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ func init() {
111111
"completion-context",
112112
)
113113

114+
carapace.Gen(rootCmd).FlagCompletion(carapace.ActionMap{
115+
"format": carapace.ActionValues("bash", "zsh", "fish", "elvish", "nushell", "powershell", "xonsh", "tcsh", "oil", "cmd"),
116+
})
117+
114118
carapace.Gen(rootCmd).PositionalCompletion(
115119
bridge.ActionCarapaceBin().SplitP(),
116120
)

0 commit comments

Comments
 (0)