mirror of https://github.com/docker/cli.git
cli-plugins: use only the first word of `Use` as the name
This can be obtained with the `.Name()` method. Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
parent
2344627564
commit
8fa7c572d4
|
@ -77,7 +77,7 @@ func PersistentPreRunE(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
|
||||
func newPluginCommand(dockerCli *command.DockerCli, plugin *cobra.Command, meta manager.Metadata) *cobra.Command {
|
||||
name := plugin.Use
|
||||
name := plugin.Name()
|
||||
fullname := manager.NamePrefix + name
|
||||
|
||||
cmd := &cobra.Command{
|
||||
|
|
Loading…
Reference in New Issue