Skip to content

Commit

Permalink
feat: implement plugin UX (#415)
Browse files Browse the repository at this point in the history
According
https://github.com/notaryproject/notation/blob/main/specs/commandline/plugin.md.

Updated help message.
Updated spec: replace "\<command>" with "[command]" because the format
is defined in cobra template.

Signed-off-by: Junjie Gao <[email protected]>
  • Loading branch information
JeyJeyGao authored Oct 27, 2022
1 parent f747031 commit f947da5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/notation/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ func pluginCommand() *cobra.Command {

func pluginListCommand() *cobra.Command {
return &cobra.Command{
Use: "list",
Use: "list [flags]",
Aliases: []string{"ls"},
Short: "List registered plugins",
Short: "List installed plugins",
RunE: func(cmd *cobra.Command, args []string) error {
return listPlugins(cmd)
},
Expand Down
4 changes: 1 addition & 3 deletions specs/commandline/plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ Use `notation plugin` to manage plugins. See notation [plugin documentation](htt
Manage plugins
Usage:
notation plugin <command>
notation plugin [command]
Available Commands:
list List installed plugins
Flags:
-h, --help help for plugin
RUN 'notation plugin <command> --help' for more information on a command.
```

### notation plugin list
Expand Down

0 comments on commit f947da5

Please sign in to comment.