mirror of https://github.com/docker/cli.git
23 lines
552 B
Go
23 lines
552 B
Go
|
package trust
|
||
|
|
||
|
import (
|
||
|
"github.com/docker/cli/cli"
|
||
|
"github.com/docker/cli/cli/command"
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
// newTrustSignerCommand returns a cobra command for `trust signer` subcommands
|
||
|
func newTrustSignerCommand(dockerCli command.Cli) *cobra.Command {
|
||
|
cmd := &cobra.Command{
|
||
|
Use: "signer",
|
||
|
Short: "Manage entities who can sign Docker images (experimental)",
|
||
|
Args: cli.NoArgs,
|
||
|
RunE: command.ShowHelp(dockerCli.Err()),
|
||
|
}
|
||
|
cmd.AddCommand(
|
||
|
newSignerAddCommand(dockerCli),
|
||
|
newSignerRemoveCommand(dockerCli),
|
||
|
)
|
||
|
return cmd
|
||
|
}
|