ValueSource is a source which can be used to look up a value, typically for use with a cli.Flag
| 9 | // ValueSource is a source which can be used to look up a value, |
| 10 | // typically for use with a cli.Flag |
| 11 | type ValueSource interface { |
| 12 | fmt.Stringer |
| 13 | fmt.GoStringer |
| 14 | |
| 15 | // Lookup returns the value from the source and if it was found |
| 16 | // or returns an empty string and false |
| 17 | Lookup() (string, bool) |
| 18 | } |
| 19 | |
| 20 | // EnvValueSource is to specifically detect env sources when |
| 21 | // printing help text |
nothing calls this directly
no outgoing calls
no test coverage detected