trust: address review feedback, refactor to align with existing cli/command semantics

Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
This commit is contained in:
Riyaz Faizullabhoy
2017-08-25 14:49:40 -07:00
parent 007aff70bf
commit 45c102a03d
15 changed files with 253 additions and 193 deletions

View File

@ -10,7 +10,7 @@ import (
func NewTrustCommand(dockerCli command.Cli) *cobra.Command {
cmd := &cobra.Command{
Use: "trust",
Short: "Sign images to establish trust",
Short: "Manage trust on Docker images",
Args: cli.NoArgs,
RunE: command.ShowHelp(dockerCli.Err()),
}