reeflective / carapace

command argument completion generator for spf13/cobra

Home Page:https://rsteube.github.io/carapace/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

carapace

PkgGoDev documentation GoReportCard Coverage Status

Command argument completion generator for cobra. You can read more about it here: A pragmatic approach to shell completion.

Supported shells:

Usage

Calling carapace.Gen on the root command is sufficient to enable completion using the hidden command.

import (
    "github.com/rsteube/carapace"
)

carapace.Gen(rootCmd)

Example

An example implementation can be found in the example folder.

Standalone Mode

Carapace can also be used to provide completion for arbitrary commands. See carapace-bin for examples.

Related Projects

About

command argument completion generator for spf13/cobra

https://rsteube.github.io/carapace/

License:Apache License 2.0


Languages

Language:Go 87.0%Language:Nushell 8.2%Language:Shell 1.8%Language:Dockerfile 1.2%Language:PowerShell 0.7%Language:Python 0.4%Language:Nu 0.4%Language:Elvish 0.3%Language:Xonsh 0.1%