mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
25 lines
548 B
Go
25 lines
548 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/git"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var bisectCmd = &cobra.Command{
|
|
Use: "bisect",
|
|
Short: "Use binary search to find the commit that introduced a bug",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
GroupID: groups[group_main].ID,
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(bisectCmd).Standalone()
|
|
|
|
rootCmd.AddCommand(bisectCmd)
|
|
|
|
carapace.Gen(bisect_skipCmd).PositionalAnyCompletion(
|
|
git.ActionRefRanges(git.RefOption{}.Default()),
|
|
)
|
|
}
|