mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
21 lines
549 B
Go
21 lines
549 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var verify_commitCmd = &cobra.Command{
|
|
Use: "verify-commit",
|
|
Short: "Check the GPG signature of commits",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
GroupID: groups[group_interrogator].ID,
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(verify_commitCmd).Standalone()
|
|
verify_commitCmd.Flags().Bool("raw", false, "print raw gpg status output")
|
|
verify_commitCmd.Flags().BoolP("verbose", "v", false, "print commit contents")
|
|
rootCmd.AddCommand(verify_commitCmd)
|
|
}
|