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

Method SetFlag

cli/cobra.go:119–121  ·  view source on GitHub ↗

SetFlag sets a flag in the local flag set of the top-level command

(name, value string)

Source from the content-addressed store, hash-verified

117
118// SetFlag sets a flag in the local flag set of the top-level command
119func (tcmd *TopLevelCommand) SetFlag(name, value string) {
120 tcmd.cmd.Flags().Set(name, value)
121}
122
123// HandleGlobalFlags takes care of parsing global flags defined on the
124// command, it returns the underlying cobra command and the args it

Callers 1

TestClientDebugEnabledFunction · 0.80

Calls 1

SetMethod · 0.45

Tested by 1

TestClientDebugEnabledFunction · 0.64