Commit Graph

13 Commits

Author SHA1 Message Date
Vladislav Mitov
0b665e6170 Add PathFlag 2017-09-29 00:07:20 +03:00
Dan Buch
a61867e5e6
Merge remote-tracking branch 'origin/v1' into merging-from-v1 2017-08-04 11:59:27 -04:00
Jesse Szwedko
f8347a97c6 Fix altsrc slice inputs so that they correctly parse
Was previously attempting to cast directly from []interface{} to
[]string or []int which Go doesn't support. Instead, we iterate over and
cast each value (error'ing if the value is not the correct format).

Fixes #580
2017-01-16 17:22:11 -08:00
Jake Champlin
b93207160f
Update altsrc imports to gopkg.in
Updates altsrc imports to use `gopkg.in/urfave/cli.v2`

Fixes: #505
2016-08-27 19:14:15 -04:00
Jake Champlin
c75c862386
Fix import paths in altsrc
Uses gopkg.in as the import path for the `altsrc` package.

Fixes: #473
2016-08-27 19:09:14 -04:00
Dan Buch
9b16216c07
Merge remote-tracking branch 'origin/v2' into minimize-struct-copying 2016-05-23 19:37:17 -04:00
Dan Buch
6d6f7da978
Merging from master/v1 2016-05-22 18:30:07 -04:00
Jesse Szwedko
024b4c6240 Update references to codegangsta to urfave (new org name)
Also add notice to README
2016-05-22 14:42:23 -07:00
Dan Buch
cd10b49473
Minimize struct copying
by using pointer func receivers and slices of struct pointers where possible.
2016-05-22 15:20:52 -04:00
Dan Buch
81fcf706ea
Replace all "stringly typed" fields with slice equivalents
and alter the Flag interface accordingly

Closes #415
2016-05-21 21:29:45 -04:00
Dan Buch
f2d5ed9933
Replace BoolTFlag type with BoolFlag.Value
Closes #412
2016-05-18 08:20:15 -04:00
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.
2016-04-29 13:28:59 -04:00
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
2016-02-21 20:06:02 -08:00