We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb328a6 commit f58ad49Copy full SHA for f58ad49
completers/common/but_completer/cmd/rub.go
@@ -2,6 +2,7 @@ package cmd
2
3
import (
4
"github.com/carapace-sh/carapace"
5
+ "github.com/carapace-sh/carapace-bin/pkg/actions/tools/but"
6
"github.com/spf13/cobra"
7
)
8
@@ -16,4 +17,9 @@ func init() {
16
17
18
rubCmd.Flags().BoolP("help", "h", false, "Print help (see more with '--help')")
19
rootCmd.AddCommand(rubCmd)
20
+
21
+ carapace.Gen(rubCmd).PositionalCompletion(
22
+ but.ActionLocalBranches(),
23
+ but.ActionLocalBranches().FilterArgs(),
24
+ )
25
}
0 commit comments