Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated carapace-bridge #1620

Merged
merged 1 commit into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions cmd/generate/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,26 +176,30 @@ func macros() {
`bridge "github.com/rsteube/carapace-bridge/pkg/actions/bridge"`: true,
}
macros := []string{
`"bridge.Argcomplete": spec.MacroV(bridge.ActionArgcomplete).NoFlag(),`,
`"bridge.Carapace": spec.MacroV(bridge.ActionCarapace).NoFlag(),`,
`"bridge.CarapaceBin": spec.MacroV(bridge.ActionCarapaceBin).NoFlag(),`,
`"bridge.Click": spec.MacroV(bridge.ActionClick).NoFlag(),`,
`"bridge.Cobra": spec.MacroV(bridge.ActionCobra).NoFlag(),`,
`"bridge.Complete": spec.MacroV(bridge.ActionComplete).NoFlag(),`,
`"bridge.Fish": spec.MacroV(bridge.ActionFish).NoFlag(),`,
`"bridge.Yargs": spec.MacroV(bridge.ActionYargs).NoFlag(),`,
`"bridge.Zsh": spec.MacroV(bridge.ActionZsh).NoFlag(),`,
`"bridge.Argcomplete": spec.MacroV(bridge.ActionArgcomplete).NoFlag(),`,
`"bridge.Bash": spec.MacroV(bridge.ActionBash).NoFlag(),`,
`"bridge.Carapace": spec.MacroV(bridge.ActionCarapace).NoFlag(),`,
`"bridge.CarapaceBin": spec.MacroV(bridge.ActionCarapaceBin).NoFlag(),`,
`"bridge.Click": spec.MacroV(bridge.ActionClick).NoFlag(),`,
`"bridge.Cobra": spec.MacroV(bridge.ActionCobra).NoFlag(),`,
`"bridge.Complete": spec.MacroV(bridge.ActionComplete).NoFlag(),`,
`"bridge.Fish": spec.MacroV(bridge.ActionFish).NoFlag(),`,
`"bridge.Powershell": spec.MacroV(bridge.ActionPowershell).NoFlag(),`,
`"bridge.Yargs": spec.MacroV(bridge.ActionYargs).NoFlag(),`,
`"bridge.Zsh": spec.MacroV(bridge.ActionZsh).NoFlag(),`,
}
descriptions := map[string]string{
"bridge.Argcomplete": "bridges https://github.com/kislyuk/argcomplete",
"bridge.Bash": "bridges https://www.gnu.org/software/bash/",
"bridge.Carapace": "bridges https://github.com/rsteube/carapace",
"bridge.CarapaceBin": "bridges completions registered in carapace-bin",
"bridge.CarapaceBin": "bridges https://github.com/rsteube/carapace-bin",
"bridge.Click": "bridges https://github.com/pallets/click",
"bridge.Cobra": "bridges https://github.com/spf13/cobra",
"bridge.Complete": "bridges https://github.com/posener/complete",
"bridge.Fish": "bridges completions registered in fish shell",
"bridge.Fish": "bridges https://fishshell.com/",
"bridge.Powershell": "bridges https://microsoft.com/powershell",
"bridge.Yargs": "bridges https://github.com/yargs/yargs",
"bridge.Zsh": "bridges completions registered in zsh shell",
"bridge.Zsh": "bridges https://www.zsh.org/",
}

r := regexp.MustCompile(`^func Action(?P<name>[^(]+)\((?P<arg>[^(]*)\) carapace.Action {$`)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
github.com/pelletier/go-toml v1.9.5
github.com/rsteube/carapace v0.33.9
github.com/rsteube/carapace-bridge v0.0.15
github.com/rsteube/carapace-bridge v0.0.16
github.com/rsteube/carapace-spec v0.6.5
github.com/spf13/cobra v1.6.1
github.com/spf13/pflag v1.0.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rsteube/carapace v0.33.9 h1:dUBWNWXTUCTc5qQcpA6jb9PuuO1jkNDFPSuMkGk8TGg=
github.com/rsteube/carapace v0.33.9/go.mod h1:/ALYHicIpak6TjQnKl7HupclqJydy2LQb6CkawYBxDo=
github.com/rsteube/carapace-bridge v0.0.15 h1:KH2hS9WpNACfk78/c/cbeZ4y8jILe8Iju6CISvSkbSw=
github.com/rsteube/carapace-bridge v0.0.15/go.mod h1:20dVunkGVXzlpVz6Tkv0pSxEXm3N0QJ528zYdsfUrd8=
github.com/rsteube/carapace-bridge v0.0.16 h1:urbBN59Kx3d1bdOLvDe5DalvVwJK1tA+d8AXb/4Oax8=
github.com/rsteube/carapace-bridge v0.0.16/go.mod h1:20dVunkGVXzlpVz6Tkv0pSxEXm3N0QJ528zYdsfUrd8=
github.com/rsteube/carapace-pflag v0.1.0 h1:CPJRlj3jbyOnxuMf5pdrM76hEwdQ0STDDmkAHQcGbhg=
github.com/rsteube/carapace-pflag v0.1.0/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/rsteube/carapace-spec v0.6.5 h1:9u7ZExxPDU7MGTYHncN5ugJWOlVTUmaf4uIjrdGmjwU=
Expand Down