11
11
> This can be prevented with [ ` CompletionOptions ` ] .
12
12
>
13
13
> Historically [ Cobra] had no dynamic completion and development in this regard was quite stale.
14
- > Without the burden of backward compability and the massive amount of [ dependents] , [ Carapace] could develop much more quickly.
14
+ > Without the burden of backward compability and the massive amount of [ dependents] ,
15
+ > [ Carapace] could develop much more quickly and push the boundary of what's possible.
15
16
>
16
17
> Here's the [ cornerstone] which ultimately became [ Carapace] .
17
18
@@ -34,14 +35,23 @@ Most of these can be directly sourced.
34
35
35
36
![ ] ( ./root/script.cast )
36
37
37
- > [ Carapace] has a basic shell detection mechanism, so in most cases ` [shell] ` is optional.
38
+ > [ Carapace] has a basic [ shell detection] mechanism, so in most cases ` [shell] ` is optional.
38
39
39
40
## Export
40
41
41
42
Shell scripts in [ Carapace] are just thin layers to integrate with the corresponding shell.
42
43
43
- Aside from shell specific output (` freckles _carapace [shell] freckles ...[ARGS] ` ) which simplifies the shell scripts.
44
- [ Export] provides a more generic ` json ` representation of completions.
44
+ Aside from shell specific output (which simplifies the scripts):
45
+
46
+ ``` sh
47
+ freckles _carapace [shell] freckles ...[ARGS]
48
+ ```
49
+
50
+ [ Export] provides a more generic ` json ` representation of completions:
51
+
52
+ ``` sh
53
+ freckles _carapace export freckles ...[ARGS]
54
+ ```
45
55
46
56
-
47
57
-
@@ -74,3 +84,4 @@ Aside from shell specific output (`freckles _carapace [shell] freckles ...[ARGS]
74
84
[ MacroN ] :https://pkg.go.dev/github.com/carapace-sh/carapace-spec#MacroN
75
85
[ Macros ] :https://carapace-sh.github.io/carapace-spec/carapace-spec/macros.html
76
86
[ MacroV ] :https://pkg.go.dev/github.com/carapace-sh/carapace-spec#MacroV
87
+ [ shell detection ] :https://github.com/carapace-sh/carapace/blob/master/pkg/ps/ps.go
0 commit comments