MCPcopy Create free account
hub / github.com/docker/cli / newTrustCommand

Function newTrustCommand

cmd/docker-trust/trust/cmd.go:15–32  ·  view source on GitHub ↗

newTrustCommand returns a cobra command for `trust` subcommands.

(dockerCLI command.Cli)

Source from the content-addressed store, hash-verified

13
14// newTrustCommand returns a cobra command for `trust` subcommands.
15func 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}

Callers

nothing calls this directly

Calls 6

newRevokeCommandFunction · 0.85
newSignCommandFunction · 0.85
newTrustKeyCommandFunction · 0.85
newTrustSignerCommandFunction · 0.85
newInspectCommandFunction · 0.70
ErrMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…