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

Interface ValueCreator

flag_impl.go:42–45  ·  flag_impl.go::ValueCreator

ValueCreator is responsible for creating a flag.Value emulation as well as custom formatting T specifies the type C specifies the config for the type

Source from the content-addressed store, hash-verified

40// T specifies the type
41// C specifies the config for the type
42type ValueCreator[T any, C any] interface {
43 Create(T, *T, C) Value
44 ToString(T) string
45}
46
47// NoConfig is for flags which dont need a custom configuration
48type NoConfig struct{}

Callers 12

TestIntFlagExtFunction · 0.65
TestExtFlag_SchemaTypeFunction · 0.65
TestExtFlagFunction · 0.65
PreParseMethod · 0.65
CreateMethod · 0.65
ParseMethod · 0.65
CreateMethod · 0.65
TestUintFlagExtFunction · 0.65
GetDefaultTextMethod · 0.65
GetValueMethod · 0.65
ToStringMethod · 0.65
StringMethod · 0.65

Implementers 4

genericValueflag_generic.go
boolValueflag_bool.go
timestampValueflag_timestamp.go
stringValueflag_string.go

Calls

no outgoing calls

Tested by

no test coverage detected