newTrustCommand returns a cobra command for `trust` subcommands.
(dockerCLI command.Cli)
| 13 | |
| 14 | // newTrustCommand returns a cobra command for `trust` subcommands. |
| 15 | func newTrustCommand(dockerCLI command.Cli) *cobra.Command { |
| 16 | cmd := &cobra.Command{ |
| 17 | Use: "trust", |
| 18 | Short: "Manage trust on Docker images", |
| 19 | Args: cli.NoArgs, |
| 20 | RunE: command.ShowHelp(dockerCLI.Err()), |
| 21 | |
| 22 | DisableFlagsInUseLine: true, |
| 23 | } |
| 24 | cmd.AddCommand( |
| 25 | newRevokeCommand(dockerCLI), |
| 26 | newSignCommand(dockerCLI), |
| 27 | newTrustKeyCommand(dockerCLI), |
| 28 | newTrustSignerCommand(dockerCLI), |
| 29 | newInspectCommand(dockerCLI), |
| 30 | ) |
| 31 | return cmd |
| 32 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…