Alec Thomas
439c674f7a
Use interface{} instead of string in tokens.
...
This allows the scanner and resolvers to pass Go types around rather
than having to serialise/deserialise to/from strings.
2019-04-24 23:25:13 +10:00
Alec Thomas
886c2d7b01
Better help for maps.
2019-01-12 20:59:24 +11:00
Alec Thomas
c935ea07dd
Fix some more Resolver changes.
2018-09-21 17:13:37 +10:00
Alec Thomas
c112a076e7
Convert resolvers to an interface with a Validate() method.
2018-09-21 16:23:50 +10:00
Alec Thomas
3a832f8343
Treat envars as higher priority than resolvers.
2018-09-21 12:11:52 +10:00
Alec Thomas
653531d6bc
Start making help slightly configurable.
2018-06-20 21:55:39 +10:00
Alec Thomas
662ace41c5
Move separator defaulting back into Tag.
2018-06-13 22:58:53 +10:00
Alec Thomas
ecf21e4cc9
Add support for maps.
2018-06-13 22:17:28 +10:00
Alec Thomas
232faad0a0
Add configuration loading + docs + linter fixes.
2018-06-13 10:34:19 +10:00
Alec Thomas
a5c97373ba
Remove automatic envar naming resolver.
2018-06-13 08:40:41 +10:00
Alec Thomas
0fb3de514f
Add a default-enabled EnvResolver for the env tag.
2018-06-12 23:27:58 +10:00
Alec Thomas
e9d88d6528
Implement flag "resolvers". ( #24 )
...
* Propagate errors.
* Use junit test output.
* Expand role of DecodeContext to include Scanner.
* Inject resolved flags as Path elements in the Context.
This allows all existing logic to apply seamlessly: hooks, required
flags, etc.
* Clarify that hooks can be called multiple times.
2018-06-12 07:20:55 +10:00