(f *cmdutil.Factory)
| 9 | ) |
| 10 | |
| 11 | func 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 | } |
nothing calls this directly
no test coverage detected