2024-09-22 11:41:46 +02:00

28 lines
645 B
Go

package cmd
import (
"github.com/carapace-sh/carapace"
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/git"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "git-browse-ci",
Short: "Opens the current git repository CI page in your default web browser",
Long: "https://github.com/tj/git-extras/blob/master/Commands.md#git-browse-ci",
Run: func(cmd *cobra.Command, args []string) {},
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
carapace.Gen(rootCmd).Standalone()
rootCmd.Flags().Bool("help", false, "show help")
carapace.Gen(rootCmd).PositionalCompletion(
git.ActionRemotes(),
)
}