Carapace: Command Argument Completion Generator for Spf13/cobra

Carapace

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

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


Supported shells:


Download Details:

Author: rsteube
Source Code: https://github.com/rsteube/carapace 
License: Apache-2.0 license

#go #golang #bash #generator 

Carapace: Command Argument Completion Generator for Spf13/cobra
1.10 GEEK