MCPcopy
hub / github.com/urfave/cli / Set

Method Set

flag_generic.go:26–31  ·  flag_generic.go::genericValue.Set

Below functions are to satisfy the flag.Value interface

(s string)

Source from the content-addressed store, hash-verified

24// Below functions are to satisfy the flag.Value interface
25
26func (f *genericValue) Set(s string) error {
27 if f.val != nil {
28 return f.val.Set(s)
29 }
30 return nil
31}
32
33func (f *genericValue) Get() any {
34 if f.val != nil {

Callers 1

TestGenericValueFunction · 0.95

Calls 1

SetMethod · 0.65

Tested by 1

TestGenericValueFunction · 0.76