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

Struct boolValue

flag_bool.go:22–25  ·  flag_bool.go::boolValue

boolValue needs to implement the boolFlag internal interface in flag to be able to capture bool fields and values type boolFlag interface { Value IsBoolFlag() bool }

Source from the content-addressed store, hash-verified

20// IsBoolFlag() bool
21// }
22type boolValue struct {
23 destination *bool
24 count *int
25}
26
27func (cmd *Command) Bool(name string) bool {
28 if v, ok := cmd.Value(name).(bool); ok {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected