From 3abe08b9732b02d628111a3b076ee7e07c47afd8 Mon Sep 17 00:00:00 2001 From: rsteube Date: Tue, 31 Oct 2023 14:58:44 +0100 Subject: [PATCH] git: verify-tag --- completers/git_completer/cmd/verifyTag.go | 23 +++++++++++++++++++ .../git_completer/cmd/verify_tag_generated.go | 21 ----------------- 2 files changed, 23 insertions(+), 21 deletions(-) create mode 100644 completers/git_completer/cmd/verifyTag.go delete mode 100644 completers/git_completer/cmd/verify_tag_generated.go diff --git a/completers/git_completer/cmd/verifyTag.go b/completers/git_completer/cmd/verifyTag.go new file mode 100644 index 0000000000..8f36ec6cd0 --- /dev/null +++ b/completers/git_completer/cmd/verifyTag.go @@ -0,0 +1,23 @@ +package cmd + +import ( + "github.com/rsteube/carapace" + "github.com/spf13/cobra" +) + +var verifyTagCmd = &cobra.Command{ + Use: "verify-tag", + Short: "Check the GPG signature of tags", + Run: func(cmd *cobra.Command, args []string) {}, +} + +func init() { + carapace.Gen(verifyTagCmd).Standalone() + + verifyTagCmd.Flags().String("format", "", "format to use for the output") + verifyTagCmd.Flags().Bool("raw", false, "print raw gpg status output") + verifyTagCmd.Flags().BoolP("verbose", "v", false, "print tag contents") + rootCmd.AddCommand(verifyTagCmd) + + // TODO positional completion +} diff --git a/completers/git_completer/cmd/verify_tag_generated.go b/completers/git_completer/cmd/verify_tag_generated.go deleted file mode 100644 index 923480cb57..0000000000 --- a/completers/git_completer/cmd/verify_tag_generated.go +++ /dev/null @@ -1,21 +0,0 @@ -package cmd - -import ( - "github.com/rsteube/carapace" - "github.com/spf13/cobra" -) - -var verify_tagCmd = &cobra.Command{ - Use: "verify-tag", - Short: "Check the GPG signature of tags", - Run: func(cmd *cobra.Command, args []string) {}, - GroupID: groups[group_interrogator].ID, -} - -func init() { - carapace.Gen(verify_tagCmd).Standalone() - verify_tagCmd.Flags().String("format", "", "format to use for the output") - verify_tagCmd.Flags().Bool("raw", false, "print raw gpg status output") - verify_tagCmd.Flags().BoolP("verbose", "v", false, "print tag contents") - rootCmd.AddCommand(verify_tagCmd) -}