mirror of https://github.com/docker/cli.git
26 lines
594 B
Go
26 lines
594 B
Go
package trust
|
|
|
|
import (
|
|
"github.com/docker/cli/cli"
|
|
"github.com/docker/cli/cli/command"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// NewTrustCommand returns a cobra command for `trust` subcommands
|
|
func NewTrustCommand(dockerCli command.Cli) *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "trust",
|
|
Short: "Manage trust on Docker images",
|
|
Args: cli.NoArgs,
|
|
RunE: command.ShowHelp(dockerCli.Err()),
|
|
}
|
|
cmd.AddCommand(
|
|
newRevokeCommand(dockerCli),
|
|
newSignCommand(dockerCli),
|
|
newTrustKeyCommand(dockerCli),
|
|
newTrustSignerCommand(dockerCli),
|
|
newInspectCommand(dockerCli),
|
|
)
|
|
return cmd
|
|
}
|