Command argument completion generator for cobra. You can read more about it here: A pragmatic approach to shell completion.
Supported shells:
Calling carapace.Gen
on the root command is sufficient to enable completion using the hidden command.
import (
"github.com/carapace-sh/carapace"
)
carapace.Gen(rootCmd)
An example implementation can be found in the example folder.
Carapace can also be used to provide completion for arbitrary commands. See carapace-bin for examples.
- carapace-bin multi-shell multi-command argument completer
- carapace-bridge completion bridge
- carapace-pflag Drop-in replacement for spf13/pflag with support for non-posix variants
- carapace-shlex simple shell lexer
- carapace-spec define simple completions using a spec file
- carapace-spec-clap spec generation for clap-rs/clap
- carapace-spec-kingpin spec generation for alecthomas/kingpin
- carapace-spec-kong spec generation for alecthomas/kong
- carapace-spec-man spec generation for manpages
- carapace-spec-urfavecli spec generation for urfave/cli