2017-08-24 18:43:55 -04:00
|
|
|
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",
|
2017-09-19 18:04:04 -04:00
|
|
|
Short: "Manage trust on Docker images (experimental)",
|
2017-08-24 18:43:55 -04:00
|
|
|
Args: cli.NoArgs,
|
|
|
|
RunE: command.ShowHelp(dockerCli.Err()),
|
|
|
|
}
|
|
|
|
cmd.AddCommand(
|
2017-09-19 17:59:48 -04:00
|
|
|
newViewCommand(dockerCli),
|
2017-08-24 18:43:55 -04:00
|
|
|
newRevokeCommand(dockerCli),
|
|
|
|
newSignCommand(dockerCli),
|
|
|
|
)
|
|
|
|
return cmd
|
|
|
|
}
|