diff --git a/completers/git_completer/cmd/patchId.go b/completers/git_completer/cmd/patchId.go new file mode 100644 index 0000000000..aeb3c1d412 --- /dev/null +++ b/completers/git_completer/cmd/patchId.go @@ -0,0 +1,22 @@ +package cmd + +import ( + "github.com/rsteube/carapace" + "github.com/spf13/cobra" +) + +var patchIdCmd = &cobra.Command{ + Use: "patch-id", + Short: "Compute unique ID for a patch", + Run: func(cmd *cobra.Command, args []string) {}, + GroupID: groups[group_low_level_helper].ID, +} + +func init() { + carapace.Gen(patchIdCmd).Standalone() + + patchIdCmd.Flags().Bool("stable", false, "use the stable patch-id algorithm") + patchIdCmd.Flags().Bool("unstable", false, "use the unstable patch-id algorithm") + patchIdCmd.Flags().Bool("verbatim", false, "don't strip whitespace from the patch") + rootCmd.AddCommand(patchIdCmd) +} diff --git a/completers/git_completer/cmd/patch_id_generated.go b/completers/git_completer/cmd/patch_id_generated.go deleted file mode 100644 index bce2a90307..0000000000 --- a/completers/git_completer/cmd/patch_id_generated.go +++ /dev/null @@ -1,19 +0,0 @@ -package cmd - -import ( - "github.com/rsteube/carapace" - "github.com/spf13/cobra" -) - -var patch_idCmd = &cobra.Command{ - Use: "patch-id", - Short: "Compute unique ID for a patch", - Run: func(cmd *cobra.Command, args []string) {}, - GroupID: groups[group_low_level_helper].ID, -} - -func init() { - carapace.Gen(patch_idCmd).Standalone() - - rootCmd.AddCommand(patch_idCmd) -}