Skip to content

carapace-sh/carapace

Folders and files

NameName
Last commit message
Last commit date
May 24, 2022
Feb 5, 2023
Sep 12, 2023
Oct 3, 2023
Aug 3, 2023
Oct 3, 2023
Aug 15, 2023
Sep 29, 2023
Aug 7, 2023
Feb 5, 2023
Jul 16, 2023
Jul 25, 2023
Sep 16, 2023
Sep 3, 2013
Aug 2, 2023
Sep 14, 2023
Aug 21, 2023
Nov 26, 2022
Dec 2, 2022
Oct 2, 2023
May 3, 2023
Oct 2, 2023
Jul 14, 2023
Apr 11, 2023
Aug 12, 2023
Jul 16, 2023
Nov 26, 2022
Oct 3, 2023
Jul 25, 2023
Feb 5, 2023
Aug 11, 2023
Aug 11, 2023
Jan 22, 2023
Aug 11, 2023
Oct 3, 2023
Aug 11, 2023
Apr 11, 2023
May 27, 2023
Sep 16, 2023
Sep 16, 2023
Oct 3, 2023

Repository files navigation

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