From f947da5884489b5d32da4d37794a1da363d1d4c5 Mon Sep 17 00:00:00 2001 From: Junjie Gao Date: Thu, 27 Oct 2022 10:17:45 +0800 Subject: [PATCH] feat: implement plugin UX (#415) According https://github.com/notaryproject/notation/blob/main/specs/commandline/plugin.md. Updated help message. Updated spec: replace "\" with "[command]" because the format is defined in cobra template. Signed-off-by: Junjie Gao --- cmd/notation/plugin.go | 4 ++-- specs/commandline/plugin.md | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/notation/plugin.go b/cmd/notation/plugin.go index d5ad3ec2e..4ee8d2c94 100644 --- a/cmd/notation/plugin.go +++ b/cmd/notation/plugin.go @@ -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) }, diff --git a/specs/commandline/plugin.md b/specs/commandline/plugin.md index 41dbf6f51..5e17f62ae 100644 --- a/specs/commandline/plugin.md +++ b/specs/commandline/plugin.md @@ -12,15 +12,13 @@ Use `notation plugin` to manage plugins. See notation [plugin documentation](htt Manage plugins Usage: - notation plugin + notation plugin [command] Available Commands: list List installed plugins Flags: -h, --help help for plugin - -RUN 'notation plugin --help' for more information on a command. ``` ### notation plugin list