github.com/kunnos/engine@v1.13.1/cli/command/plugin/set.go (about)

     1  package plugin
     2  
     3  import (
     4  	"golang.org/x/net/context"
     5  
     6  	"github.com/docker/docker/cli"
     7  	"github.com/docker/docker/cli/command"
     8  	"github.com/spf13/cobra"
     9  )
    10  
    11  func newSetCommand(dockerCli *command.DockerCli) *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  }