File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77 "github.com/carapace-sh/carapace"
88 "github.com/carapace-sh/carapace-bridge/pkg/bridges"
9- "github.com/carapace-sh/carapace-bridge/pkg/choice "
9+ "github.com/carapace-sh/carapace-bridge/pkg/choices "
1010 "github.com/carapace-sh/carapace-bridge/pkg/env"
1111)
1212
@@ -51,7 +51,7 @@ func ActionBridges() carapace.Action {
5151func ActionBridge (command ... string ) carapace.Action {
5252 return actionCommand (command ... )(func (command ... string ) carapace.Action {
5353 return carapace .ActionCallback (func (c carapace.Context ) carapace.Action {
54- if choice , err := choice .Get (command [0 ]); err == nil && choice .Group == "bridge" {
54+ if choice , err := choices .Get (command [0 ]); err == nil && choice .Group == "bridge" {
5555 if action , ok := bridgeActions [choice .Variant ]; ok {
5656 return action (command ... )
5757 }
Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ package choice
22
33import (
44 "github.com/carapace-sh/carapace"
5- "github.com/carapace-sh/carapace-bridge/pkg/choice "
5+ "github.com/carapace-sh/carapace-bridge/pkg/choices "
66)
77
88func ActionChoices () carapace.Action {
99 return carapace .ActionCallback (func (c carapace.Context ) carapace.Action {
10- choices , err := choice .List (true )
10+ list , err := choices .List (true )
1111 if err != nil {
1212 return carapace .ActionMessage (err .Error ())
1313 }
1414 vals := make ([]string , 0 )
15- for _ , choice := range choices {
15+ for _ , choice := range list {
1616 vals = append (vals , choice .Name , choice .Format ())
1717 }
1818 return carapace .ActionValues (vals ... )
You can’t perform that action at this time.
0 commit comments