MCPcopy Index your code
hub / github.com/docker/cli / newSetCommand

Function newSetCommand

cli/command/plugin/set.go:10–24  ·  view source on GitHub ↗
(dockerCLI command.Cli)

Source from the content-addressed store, hash-verified

8)
9
10func newSetCommand(dockerCLI command.Cli) *cobra.Command {
11 return &cobra.Command{
12 Use: "set PLUGIN KEY=VALUE [KEY=VALUE...]",
13 Short: "Change settings for a plugin",
14 Args: cli.RequiresMinArgs(2),
15 RunE: func(cmd *cobra.Command, args []string) error {
16 _, err := dockerCLI.Client().PluginSet(cmd.Context(), args[0], client.PluginSetOptions{
17 Args: args[1:],
18 })
19 return err
20 },
21 ValidArgsFunction: completeNames(dockerCLI, stateAny), // TODO(thaJeztah): should only complete for the first arg
22 DisableFlagsInUseLine: true,
23 }
24}

Callers 1

newPluginCommandFunction · 0.85

Calls 2

completeNamesFunction · 0.70
ClientMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…