|
1 | 1 | package bridge |
2 | 2 |
|
3 | 3 | import ( |
4 | | - "maps" |
5 | 4 | "slices" |
6 | 5 |
|
7 | 6 | "github.com/carapace-sh/carapace" |
@@ -46,8 +45,29 @@ func Get(name string) (func(command ...string) carapace.Action, bool) { |
46 | 45 | // cobra |
47 | 46 | func ActionBridges() carapace.Action { |
48 | 47 | return carapace.ActionCallback(func(c carapace.Context) carapace.Action { |
49 | | - return carapace.ActionValues(slices.Collect(maps.Keys(bridgeActions))...). |
50 | | - Tag("bridges") |
| 48 | + return carapace.ActionValuesDescribed( |
| 49 | + "argcomplete", "bridges https://github.com/kislyuk/argcomplete", |
| 50 | + "argcompleteV1", "bridges https://github.com/kislyuk/argcomplete", |
| 51 | + "aws", "bridges https://github.com/aws/aws-cli", |
| 52 | + "bash", "bridges completions registered in bash", |
| 53 | + "carapace-bin", "bridges completions registered in carapace-bin", |
| 54 | + "carapace", "bridges https://github.com/carapace-sh/carapace", |
| 55 | + "clap", "bridges https://github.com/clap-rs/clap", |
| 56 | + "click", "bridges https://github.com/pallets/click", |
| 57 | + "cobra", "bridges https://github.com/spf13/cobra", |
| 58 | + "complete", "bridges https://github.com/posener/complete", |
| 59 | + "fish", "bridges completions registered in fish", |
| 60 | + "gcloud", "bridges https://docs.cloud.google.com/sdk/gcloud", |
| 61 | + "inshellisense", "bridges https://github.com/microsoft/inshellisense", |
| 62 | + "kingpin", "bridges https://github.com/alecthomas/kingpin", |
| 63 | + "kitten", "bridges https://github.com/kovidgoyal/kitty", |
| 64 | + "macro", "bridges macros exposed with https://github.com/carapace-sh/carapace-spec", |
| 65 | + "powershell", "bridges completions registered in powershell", |
| 66 | + "urfavecli", "bridges https://github.com/urfave/cli (v2)", |
| 67 | + "urfavecliV1", "bridges https://github.com/urfave/cli (v3)", |
| 68 | + "yargs", "bridges https://github.com/yargs/yargs", |
| 69 | + "zsh", "bridges completions registered in zsh", |
| 70 | + ).Tag("bridges") |
51 | 71 | }) |
52 | 72 | } |
53 | 73 |
|
|
0 commit comments