github.com/itscaro/cli@v0.0.0-20190705081621-c9db0fe93829/cli/command/plugin/set.go (about) 1 package plugin 2 3 import ( 4 "context" 5 6 "github.com/docker/cli/cli" 7 "github.com/docker/cli/cli/command" 8 "github.com/spf13/cobra" 9 ) 10 11 func newSetCommand(dockerCli command.Cli) *cobra.Command { 12 cmd := &cobra.Command{ 13 Use: "set PLUGIN KEY=VALUE [KEY=VALUE...]", 14 Short: "Change settings for a plugin", 15 Args: cli.RequiresMinArgs(2), 16 RunE: func(cmd *cobra.Command, args []string) error { 17 return dockerCli.Client().PluginSet(context.Background(), args[0], args[1:]) 18 }, 19 } 20 21 return cmd 22 }