MCPcopy Create free account
hub / github.com/docker/cli / Set

Method Set

cli/command/service/opts.go:125–132  ·  view source on GitHub ↗

Set the value

(value string)

Source from the content-addressed store, hash-verified

123
124// Set the value
125func (s *ShlexOpt) Set(value string) error {
126 valueSlice, err := shlex.Split(value)
127 if err != nil {
128 return err
129 }
130 *s = valueSlice
131 return nil
132}
133
134// Type returns the type of the value
135func (*ShlexOpt) Type() string {

Calls

no outgoing calls