diff --git a/completers/git_completer/cmd/imapSend.go b/completers/git_completer/cmd/imapSend.go new file mode 100644 index 0000000000..2fab76b1ae --- /dev/null +++ b/completers/git_completer/cmd/imapSend.go @@ -0,0 +1,23 @@ +package cmd + +import ( + "github.com/rsteube/carapace" + "github.com/spf13/cobra" +) + +var imapSendCmd = &cobra.Command{ + Use: "imap-send", + Short: "Send a collection of patches from stdin to an IMAP folder", + Run: func(cmd *cobra.Command, args []string) {}, + GroupID: groups[group_interaction].ID, +} + +func init() { + carapace.Gen(imapSendCmd).Standalone() + + imapSendCmd.Flags().Bool("curl", false, "use libcurl to communicate with the IMAP server") + imapSendCmd.Flags().Bool("no-curl", false, "do not use libcurl to communicate with the IMAP server") + imapSendCmd.Flags().BoolP("quiet", "q", false, "be more quiet") + imapSendCmd.Flags().BoolP("verbose", "v", false, "be more verbose") + rootCmd.AddCommand(imapSendCmd) +} diff --git a/completers/git_completer/cmd/imap_send_generated.go b/completers/git_completer/cmd/imap_send_generated.go deleted file mode 100644 index 3497c239bb..0000000000 --- a/completers/git_completer/cmd/imap_send_generated.go +++ /dev/null @@ -1,21 +0,0 @@ -package cmd - -import ( - "github.com/rsteube/carapace" - "github.com/spf13/cobra" -) - -var imap_sendCmd = &cobra.Command{ - Use: "imap-send", - Short: "Send a collection of patches from stdin to an IMAP folder", - Run: func(cmd *cobra.Command, args []string) {}, - GroupID: groups[group_interaction].ID, -} - -func init() { - carapace.Gen(imap_sendCmd).Standalone() - imap_sendCmd.Flags().Bool("curl", false, "use libcurl to communicate with the IMAP server") - imap_sendCmd.Flags().BoolP("quiet", "q", false, "be more quiet") - imap_sendCmd.Flags().BoolP("verbose", "v", false, "be more verbose") - rootCmd.AddCommand(imap_sendCmd) -}