github.com/justincormack/cli@v0.0.0-20201215022714-831ebeae9675/cli/command/trust/cmd.go (about) 1 package trust 2 3 import ( 4 "github.com/docker/cli/cli" 5 "github.com/docker/cli/cli/command" 6 "github.com/spf13/cobra" 7 ) 8 9 // NewTrustCommand returns a cobra command for `trust` subcommands 10 func NewTrustCommand(dockerCli command.Cli) *cobra.Command { 11 cmd := &cobra.Command{ 12 Use: "trust", 13 Short: "Manage trust on Docker images", 14 Args: cli.NoArgs, 15 RunE: command.ShowHelp(dockerCli.Err()), 16 } 17 cmd.AddCommand( 18 newRevokeCommand(dockerCli), 19 newSignCommand(dockerCli), 20 newTrustKeyCommand(dockerCli), 21 newTrustSignerCommand(dockerCli), 22 newInspectCommand(dockerCli), 23 ) 24 return cmd 25 }