diff --git a/completers/git_completer/cmd/symbolicRef.go b/completers/git_completer/cmd/symbolicRef.go new file mode 100644 index 0000000000..70a791c32c --- /dev/null +++ b/completers/git_completer/cmd/symbolicRef.go @@ -0,0 +1,25 @@ +package cmd + +import ( + "github.com/carapace-sh/carapace" + "github.com/spf13/cobra" +) + +var symbolicRefCmd = &cobra.Command{ + Use: "symbolic-ref", + Short: "Read, modify and delete symbolic refs", + Run: func(cmd *cobra.Command, args []string) {}, + GroupID: groups[group_low_level_manipulator].ID, +} + +func init() { + carapace.Gen(symbolicRefCmd).Standalone() + + symbolicRefCmd.Flags().BoolP("delete", "d", false, "delete the symbolicRef ") + symbolicRefCmd.Flags().StringS("m", "m", "", "update the reflog for with ") + symbolicRefCmd.Flags().Bool("no-recurse", false, "stop after dereferencing single level of symbolic ref") + symbolicRefCmd.Flags().BoolP("quiet", "q", false, "do not issue an error message if the is not a symbolicRef") + symbolicRefCmd.Flags().Bool("recurse", false, "follow symbolicReferences") + symbolicRefCmd.Flags().Bool("short", false, "try to shorten the symbolicRef") + rootCmd.AddCommand(symbolicRefCmd) +} diff --git a/completers/git_completer/cmd/symbolic_ref_generated.go b/completers/git_completer/cmd/symbolic_ref_generated.go deleted file mode 100644 index d37cddffb3..0000000000 --- a/completers/git_completer/cmd/symbolic_ref_generated.go +++ /dev/null @@ -1,22 +0,0 @@ -package cmd - -import ( - "github.com/carapace-sh/carapace" - "github.com/spf13/cobra" -) - -var symbolic_refCmd = &cobra.Command{ - Use: "symbolic-ref", - Short: "Read, modify and delete symbolic refs", - Run: func(cmd *cobra.Command, args []string) {}, - GroupID: groups[group_low_level_manipulator].ID, -} - -func init() { - carapace.Gen(symbolic_refCmd).Standalone() - symbolic_refCmd.Flags().BoolP("delete", "d", false, "delete symbolic ref") - symbolic_refCmd.Flags().StringS("m", "m", "", "reason of the update") - symbolic_refCmd.Flags().BoolP("quiet", "q", false, "suppress error message for non-symbolic (detached) refs") - symbolic_refCmd.Flags().Bool("short", false, "shorten ref output") - rootCmd.AddCommand(symbolic_refCmd) -}