FormatBool returns the strconv-formatted value. Only meaningful when IsSet.
()
| 47 | |
| 48 | // FormatBool returns the strconv-formatted value. Only meaningful when IsSet. |
| 49 | func (o OptBool) FormatBool() string { |
| 50 | return strconv.FormatBool(o.IsTrue()) |
| 51 | } |
| 52 | |
| 53 | // parseConfigBool mirrors upstream Git's git_parse_maybe_bool: it |
| 54 | // accepts true/yes/on (→ OptBoolTrue) and false/no/off (→ |
no test coverage detected