mirror of https://github.com/docker/cli.git
trust: remove extraneous OPTIONS from commands that do not use it
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
This commit is contained in:
parent
62d62ff513
commit
9ad0e8f223
|
@ -21,7 +21,7 @@ import (
|
||||||
|
|
||||||
func newSignCommand(dockerCli command.Cli) *cobra.Command {
|
func newSignCommand(dockerCli command.Cli) *cobra.Command {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "sign [OPTIONS] IMAGE:TAG",
|
Use: "sign IMAGE:TAG",
|
||||||
Short: "Sign an image",
|
Short: "Sign an image",
|
||||||
Args: cli.ExactArgs(1),
|
Args: cli.ExactArgs(1),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
|
|
|
@ -49,7 +49,7 @@ func (tagComparator trustTagRowList) Swap(i, j int) {
|
||||||
|
|
||||||
func newViewCommand(dockerCli command.Cli) *cobra.Command {
|
func newViewCommand(dockerCli command.Cli) *cobra.Command {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "view [OPTIONS] IMAGE[:TAG]",
|
Use: "view IMAGE[:TAG]",
|
||||||
Short: "Display detailed information about keys and signatures",
|
Short: "Display detailed information about keys and signatures",
|
||||||
Args: cli.ExactArgs(1),
|
Args: cli.ExactArgs(1),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
|
|
|
@ -16,7 +16,7 @@ keywords: "sign, notary, trust"
|
||||||
# trust sign
|
# trust sign
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
Usage: docker trust sign [OPTIONS] IMAGE:TAG
|
Usage: docker trust sign IMAGE:TAG
|
||||||
|
|
||||||
Sign an image
|
Sign an image
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ keywords: "view, notary, trust"
|
||||||
# trust view
|
# trust view
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
Usage: docker trust view [OPTIONS] IMAGE[:TAG]
|
Usage: docker trust view IMAGE[:TAG]
|
||||||
|
|
||||||
Display detailed information about keys and signatures
|
Display detailed information about keys and signatures
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue