Skip to content

Commit f58ad49

Browse files
committed
but: rub completion
1 parent fb328a6 commit f58ad49

File tree

1 file changed

+6
-0
lines changed
  • completers/common/but_completer/cmd

1 file changed

+6
-0
lines changed

completers/common/but_completer/cmd/rub.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package cmd
22

33
import (
44
"github.com/carapace-sh/carapace"
5+
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/but"
56
"github.com/spf13/cobra"
67
)
78

@@ -16,4 +17,9 @@ func init() {
1617

1718
rubCmd.Flags().BoolP("help", "h", false, "Print help (see more with '--help')")
1819
rootCmd.AddCommand(rubCmd)
20+
21+
carapace.Gen(rubCmd).PositionalCompletion(
22+
but.ActionLocalBranches(),
23+
but.ActionLocalBranches().FilterArgs(),
24+
)
1925
}

0 commit comments

Comments
 (0)