You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command argument completion generator for [cobra]. You can read more about it here: _[A pragmatic approach to shell completion](https://dev.to/rsteube/a-pragmatic-approach-to-shell-completion-4gp0)_.
9
-
8
+
Command argument completion generator for [cobra].
10
9
11
10
Supported shells:
12
11
-[Bash](https://www.gnu.org/software/bash/)
@@ -20,39 +19,12 @@ Supported shells:
20
19
-[Xonsh](https://xon.sh/)
21
20
-[Zsh](https://www.zsh.org/)
22
21
23
-
## Usage
24
-
25
-
Calling `carapace.Gen` on the root command is sufficient to enable completion using the [hidden command](https://carapace-sh.github.io/carapace/carapace/gen/hiddenSubcommand.html).
26
-
27
-
```go
28
-
import (
29
-
"github.com/carapace-sh/carapace"
30
-
)
31
-
32
-
carapace.Gen(rootCmd)
33
-
```
34
-
35
-
## Example
36
-
37
-
An example implementation can be found in the [example](./example/) folder.
38
-
39
-
40
-
## Standalone Mode
41
-
42
-
Carapace can also be used to provide completion for arbitrary commands.
43
-
See [carapace-bin](https://github.com/carapace-sh/carapace-bin) for examples.
0 commit comments