Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/docker/cli
/ ToSpec
Method
ToSpec
cli/command/swarm/opts.go:274–278 ·
view source on GitHub ↗
(flags *pflag.FlagSet)
Source
from the content-addressed store, hash-verified
272
}
273
274
func
(o *swarmOptions) ToSpec(flags *pflag.FlagSet) swarm.Spec {
275
var
spec swarm.Spec
276
o.mergeSwarmSpec(&spec, flags, nil)
277
return
spec
278
}
Callers
1
runInit
Function · 0.80
Calls
1
mergeSwarmSpec
Method · 0.95
Tested by
no test coverage detected