MCPcopy 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
274func (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

runInitFunction · 0.80

Calls 1

mergeSwarmSpecMethod · 0.95

Tested by

no test coverage detected