package cmd import ( "github.com/rsteube/carapace" "github.com/rsteube/carapace-bin/pkg/actions/tools/git" "github.com/spf13/cobra" ) var rootCmd = &cobra.Command{ Use: "git-alias", Short: "Define, search and show aliases", Long: "https://github.com/tj/git-extras/blob/master/Commands.md#git-alias", 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.ActionAliases(""), ) }