github.com/abdfnx/gh-api@v0.0.0-20210414084727-f5432eec23b8/pkg/cmd/ssh-key/ssh-key.go (about) 1 package key 2 3 import ( 4 cmdAdd "github.com/abdfnx/gh-api/pkg/cmd/ssh-key/add" 5 cmdList "github.com/abdfnx/gh-api/pkg/cmd/ssh-key/list" 6 "github.com/abdfnx/gh-api/pkg/cmdutil" 7 "github.com/spf13/cobra" 8 ) 9 10 func NewCmdSSHKey(f *cmdutil.Factory) *cobra.Command { 11 cmd := &cobra.Command{ 12 Use: "ssh-key <command>", 13 Short: "Manage SSH keys", 14 Long: "Manage SSH keys registered with your GitHub account", 15 } 16 17 cmd.AddCommand(cmdList.NewCmdList(f, nil)) 18 cmd.AddCommand(cmdAdd.NewCmdAdd(f, nil)) 19 20 return cmd 21 }