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

Method SetArgs

cli/cobra.go:113–116  ·  view source on GitHub ↗

SetArgs sets the args (default os.Args[:1] used to invoke the command

(args []string)

Source from the content-addressed store, hash-verified

111
112// SetArgs sets the args (default os.Args[:1] used to invoke the command
113func (tcmd *TopLevelCommand) SetArgs(args []string) {
114 tcmd.args = args
115 tcmd.cmd.SetArgs(args)
116}
117
118// SetFlag sets a flag in the local flag set of the top-level command
119func (tcmd *TopLevelCommand) SetFlag(name, value string) {

Callers 15

RunPluginFunction · 0.80
TestRequiresNoArgsFunction · 0.80
TestRequiresMinArgsFunction · 0.80
TestRequiresMaxArgsFunction · 0.80
TestRequiresRangeArgsFunction · 0.80
TestExactArgsFunction · 0.80
TestNewExecCommandErrorsFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestRequiresNoArgsFunction · 0.64
TestRequiresMinArgsFunction · 0.64
TestRequiresMaxArgsFunction · 0.64
TestRequiresRangeArgsFunction · 0.64
TestExactArgsFunction · 0.64
TestNewExecCommandErrorsFunction · 0.64
TestStopFunction · 0.64