cli/pkg/cmd/ssh-key/ssh-key.go
2021-02-17 19:46:59 +01:00

21 lines
491 B
Go

package key
import (
cmdAdd "github.com/cli/cli/pkg/cmd/ssh-key/add"
cmdList "github.com/cli/cli/pkg/cmd/ssh-key/list"
"github.com/cli/cli/pkg/cmdutil"
"github.com/spf13/cobra"
)
func NewCmdSSHKey(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "ssh-key <command>",
Short: "Manage SSH keys",
Long: "Manage SSH keys registered with your GitHub account",
}
cmd.AddCommand(cmdList.NewCmdList(f, nil))
cmd.AddCommand(cmdAdd.NewCmdAdd(f, nil))
return cmd
}