github.com/ungtb10d/cli/v2@v2.0.0-20221110210412-98537dd9d6a1/pkg/cmd/gpg-key/gpg_key.go (about) 1 package key 2 3 import ( 4 cmdAdd "github.com/ungtb10d/cli/v2/pkg/cmd/gpg-key/add" 5 cmdDelete "github.com/ungtb10d/cli/v2/pkg/cmd/gpg-key/delete" 6 cmdList "github.com/ungtb10d/cli/v2/pkg/cmd/gpg-key/list" 7 "github.com/ungtb10d/cli/v2/pkg/cmdutil" 8 "github.com/spf13/cobra" 9 ) 10 11 func NewCmdGPGKey(f *cmdutil.Factory) *cobra.Command { 12 cmd := &cobra.Command{ 13 Use: "gpg-key <command>", 14 Short: "Manage GPG keys", 15 Long: "Manage GPG keys registered with your GitHub account.", 16 } 17 18 cmd.AddCommand(cmdAdd.NewCmdAdd(f, nil)) 19 cmd.AddCommand(cmdDelete.NewCmdDelete(f, nil)) 20 cmd.AddCommand(cmdList.NewCmdList(f, nil)) 21 22 return cmd 23 }