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 }
| 20 | // IsBoolFlag() bool |
| 21 | // } |
| 22 | type boolValue struct { |
| 23 | destination *bool |
| 24 | count *int |
| 25 | } |
| 26 | |
| 27 | func (cmd *Command) Bool(name string) bool { |
| 28 | if v, ok := cmd.Value(name).(bool); ok { |
nothing calls this directly
no outgoing calls
no test coverage detected