Skip to content

Commit 04ea34d

Browse files
committed
tmp
1 parent c023dc6 commit 04ea34d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

pkg/actions/bridge/bridge.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
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 {
5151
func 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
}

pkg/actions/choice/choice.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ package choice
22

33
import (
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

88
func 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...)

0 commit comments

Comments
 (0)