MCPcopy Create free account
hub / github.com/cli/cli / NewCmdDeployKey

Function NewCmdDeployKey

pkg/cmd/repo/deploy-key/deploy-key.go:11–24  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

9)
10
11func NewCmdDeployKey(f *cmdutil.Factory) *cobra.Command {
12 cmd := &cobra.Command{
13 Use: "deploy-key <command>",
14 Short: "Manage deploy keys in a repository",
15 }
16
17 cmdutil.EnableRepoOverride(cmd, f)
18
19 cmd.AddCommand(cmdList.NewCmdList(f, nil))
20 cmd.AddCommand(cmdAdd.NewCmdAdd(f, nil))
21 cmd.AddCommand(cmdDelete.NewCmdDelete(f, nil))
22
23 return cmd
24}

Callers

nothing calls this directly

Calls 1

EnableRepoOverrideFunction · 0.92

Tested by

no test coverage detected