Dan Buch
9b16216c07
Merge remote-tracking branch 'origin/v2' into minimize-struct-copying
8 years ago
Dan Buch
6d6f7da978
Merging from master/v1
8 years ago
Dan Buch
cd10b49473
Minimize struct copying
...
by using pointer func receivers and slices of struct pointers where possible.
8 years ago
Dan Buch
81fcf706ea
Replace all "stringly typed" fields with slice equivalents
...
and alter the Flag interface accordingly
Closes #415
8 years ago
Dan Buch
f2d5ed9933
Replace BoolTFlag type with BoolFlag.Value
...
Closes #412
8 years ago
Dan Buch
bef835d455
Remove all Context.Global* methods
...
and change the behavior of the non-Global variants to always search up the
context lineage.
Closes #385
8 years ago
Dan Buch
a1e5328e30
Merge remote-tracking branch 'origin/master' into string-slice-flag-default-160
9 years ago
Dan Buch
fed78b8bab
Rework of hidden flag impl plus some Action func corrections
9 years ago
Dan Buch
15d4455a61
Merge pull request #365 from roboll/nested-flags
...
altsrc: allow nested defaults in yaml files
9 years ago
Dan Buch
1fb52b3bce
Merge remote-tracking branch 'origin/master' into string-slice-flag-default-160
9 years ago
rob boll
36a5323a47
altsrc: allow nested defaults in yaml files
...
Previously, defaults specified as nested keys in a yaml file would not
be recognized, i.e. `top: \n bottom: key` would not be accessible using
the name `top.bottom`, but `top.bottom: key` would. These changes
support using nested keys by traversing the configuration tree if the
key name uses '.' as a delimiter.
9 years ago
Dan Buch
b7329f4968
Switch from multi-return with exit codes to ExitCoder check
9 years ago
Dan Buch
a17c8cf1d8
Rename func type suffixes `Fn`->`Func` and add `OnUsageErrorFunc`
9 years ago
Dan Buch
10c8309d84
Merge branch 'develop' of https://github.com/txgruppi/cli into txgruppi-develop
9 years ago
Dan Buch
867aa0912d
Overwrite slice flag defaults when set
...
Closes #160
9 years ago
Yasuhiro KANDA
ad7ed77a7e
Fix yaml file loader
...
* fix typo (yamlSourceLoader -> yamlSourceContext)
* fix function return type (NewYamlSourceFromFlagFunc)
Also fixed build tags to properly build on >=go1.2
Signed-off-by: Jesse Szwedko <jesse.szwedko@gmail.com>
9 years ago
chrisprobinson
d3b02e41b0
Update to add build contraints to not compile in yaml support
...
in the case the golang version is less than golang 1.2
9 years ago