- fix various unhandled errors - remove some locally defined option-types in favor of option-types defined by the client / api - don't use unkeyed structs in tests, and add docs for some subtests - fix some values in tests that triggered "spellcheck" warnings - inline vars / functions that only had a single use. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
19 lines
464 B
Go
19 lines
464 B
Go
package plugin
|
|
|
|
import (
|
|
"github.com/docker/cli/cli"
|
|
"github.com/docker/cli/cli/command"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func newSetCommand(dockerCli command.Cli) *cobra.Command {
|
|
return &cobra.Command{
|
|
Use: "set PLUGIN KEY=VALUE [KEY=VALUE...]",
|
|
Short: "Change settings for a plugin",
|
|
Args: cli.RequiresMinArgs(2),
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return dockerCli.Client().PluginSet(cmd.Context(), args[0], args[1:])
|
|
},
|
|
}
|
|
}
|