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

Method Set

cli/flags/options.go:79–86  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

77}
78
79func (h *hostVar) Set(s string) error {
80 if h.set {
81 return errors.New("specify only one -H")
82 }
83 *h.dst = []string{s}
84 h.set = true
85 return nil
86}
87
88func (*hostVar) Type() string { return "string" }
89

Calls

no outgoing calls