newTrustKeyCommand returns a cobra command for `trust key` subcommands
(dockerCLI command.Streams)
| 8 | |
| 9 | // newTrustKeyCommand returns a cobra command for `trust key` subcommands |
| 10 | func newTrustKeyCommand(dockerCLI command.Streams) *cobra.Command { |
| 11 | cmd := &cobra.Command{ |
| 12 | Use: "key", |
| 13 | Short: "Manage keys for signing Docker images", |
| 14 | Args: cli.NoArgs, |
| 15 | RunE: command.ShowHelp(dockerCLI.Err()), |
| 16 | |
| 17 | DisableFlagsInUseLine: true, |
| 18 | } |
| 19 | cmd.AddCommand( |
| 20 | newKeyGenerateCommand(dockerCLI), |
| 21 | newKeyLoadCommand(dockerCLI), |
| 22 | ) |
| 23 | return cmd |
| 24 | } |
no test coverage detected
searching dependent graphs…