Commit Graph

652 Commits

Author SHA1 Message Date
Dan Buch
9584555150
Include details of hidden flag impl in CHANGELOG 2016-05-01 08:44:01 -04:00
Dan Buch
fed78b8bab
Rework of hidden flag impl plus some Action func corrections 2016-05-01 08:36:17 -04:00
Harshavardhana
99431669d0
New `Hide` variable for all Flags
This is a way to provide hidden flags for app, command and subcommands

For example:

  --generate-bash-completion global flag shouldn't be printed along
  with other flags as it might generally confuse people into thinking
  that 'generate' in-fact would generate a bash completion file for them
  to be used along with their app.

Also in general one would want to hide some flags for their apps.
2016-04-30 22:24:27 -04:00
879acab1d0 Merge pull request #369 from codegangsta/v1.15.0-prep
Prepping v1.15.0 release
2016-04-30 13:53:46 -04:00
Dan Buch
a9afed5b15
Prepping v1.15.0 release 2016-04-30 13:48:08 -04:00
aaac36ecb9 Merge pull request #368 from codegangsta/yaml-nested-changelog
Add a note to CHANGELOG about dot-delimited YAML key lookup
2016-04-30 13:46:42 -04:00
Dan Buch
896d2fd3c1
Add a note to CHANGELOG about dot-delimited YAML key lookup 2016-04-30 13:27:11 -04:00
15d4455a61 Merge pull request #365 from roboll/nested-flags
altsrc: allow nested defaults in yaml files
2016-04-30 13:25:48 -04:00
Dan Buch
1fb52b3bce
Merge remote-tracking branch 'origin/master' into string-slice-flag-default-160 2016-04-30 13:13:02 -04:00
9f8c5004f2 Merge pull request #367 from codegangsta/bryanl-bryanl-set-context-values
Merging #234 set context values
2016-04-30 12:31:31 -04:00
Dan Buch
f3b589e892
Remove unreachable code 2016-04-30 12:22:32 -04:00
Dan Buch
e059dc8188
Implement *Context.GlobalSet + relevant CHANGELOG entry 2016-04-30 11:46:47 -04:00
Dan Buch
4edb5c9a6b
Merge branch 'bryanl-set-context-values' of https://github.com/bryanl/cli into bryanl-bryanl-set-context-values 2016-04-30 11:25:05 -04:00
b4054ddd3c Merge pull request #366 from codegangsta/metadata-note
Minor changelog update bits
2016-04-30 11:12:44 -04:00
Dan Buch
e2161d7f64
Minor changelog update bits 2016-04-30 09:54:44 -04:00
e671f0b23b Merge pull request #339 from jack230230/master
Add App.Metadata
2016-04-30 09:36:46 -04:00
663fc0b623 Merge pull request #361 from codegangsta/txgruppi-develop
Optional exit code support
2016-04-30 08:14:08 -04:00
王振威
f72d405107 Change Extras to Metadata 2016-04-30 10:42:07 +08: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
Dan Buch
06c01a4bba
A few tweaks based on feedback in #361 2016-04-29 03:01:57 -04:00
Dan Buch
1a91f3dce5
Ensure IntSlice & StringSlice serialization works as expected 2016-04-29 02:53:58 -04:00
Dan Buch
d1b0c49a98
Ensure slice types can safely round-trip through flag.FlagSet 2016-04-29 02:30:49 -04:00
Dan Buch
4cae17cfe1
Ensure MultiError returned when both Before and After funcs given 2016-04-28 17:15:16 -04:00
Dan Buch
ee736e063a
Merge remote-tracking branch 'origin/master' into string-slice-flag-default-160 2016-04-28 16:53:45 -04:00
Dan Buch
61d4175525
Merge remote-tracking branch 'origin/master' into txgruppi-develop 2016-04-28 16:20:02 -04:00
222ec6fb7e Merge pull request #364 from codegangsta/assert-before-command-after-ordering
Revising/adding tests that assert order of operations inside App.Run
2016-04-28 16:12:29 -04:00
Dan Buch
6eb8c82596
Merge remote-tracking branch 'origin/master' into txgruppi-develop 2016-04-28 16:07:37 -04:00
Dan Buch
2c0e13ecf8
Revising/adding tests that assert order of operations inside App.Run 2016-04-28 16:05:14 -04:00
6e08192c80 Merge pull request #363 from codegangsta/global-float64
Add Context.GlobalFloat64 and tests
2016-04-28 13:51:20 -04:00
Dan Buch
b9bbb35c5b
Add change to Fixed section of Unreleased in CHANGELOG 2016-04-28 13:04:52 -04:00
Dan Buch
bd0f13d022
Add Context.GlobalFloat64 plus tests
Closes #362
2016-04-28 13:03:25 -04:00
Dan Buch
47f6721fae
Update CHANGELOG and add a script to help with slice type migration 2016-04-28 12:35:56 -04:00
Dan Buch
64de53e639
Merge remote-tracking branch 'origin/master' into string-slice-flag-default-160 2016-04-28 11:11:42 -04:00
Dan Buch
7651aa05a6
TRIVIAL specify *return* signature in deprecation message 2016-04-28 11:09:33 -04:00
Dan Buch
c3a6370616
Moving remaining details from #361 description to CHANGELOG.md 2016-04-28 11:07:53 -04:00
Dan Buch
b453bf5940
Clarifying errors returned from HandleAction + tests 2016-04-28 11:03:10 -04:00
Dan Buch
271b56c71b
Cleanups based on feedback in #361 2016-04-28 10:15:04 -04:00
Dan Buch
7371138edb
Add back App.RunAndExitOnError with deprecation message 2016-04-27 12:23:09 -04:00
Dan Buch
02924293ff
Removing unused vars 2016-04-27 11:51:41 -04:00
Dan Buch
9e8ead512a
Making gfmxr assertion stronger 2016-04-27 11:40:46 -04:00
Dan Buch
3b5133fbb1
Add gfmxr integration for checking examples in README.md
now that we support the legacy Action func signature.
2016-04-27 11:38:49 -04:00
Dan Buch
d45f7c1fe2
Allow for legacy and newer Action func signatures 2016-04-27 11:34:01 -04:00
Dan Buch
d48e22a9dd
Docs around exit error behavior, + handling MultiError in HandleExitCoder 2016-04-27 09:54:08 -04:00
Dan Buch
b2ac0616d1
TRIVIAL Remove trailing whitespace 2016-04-27 09:31:43 -04:00
Dan Buch
23c7b807a7
Merge remote-tracking branch 'origin/master' into txgruppi-develop 2016-04-27 09:30:05 -04:00
Dan Buch
882dd2cc6b
Making sure examples in README are valid 2016-04-27 09:21:56 -04:00
Dan Buch
f688d47415
Encapsulate ExitCoder check into a lil func 2016-04-27 09:18:42 -04:00
Dan Buch
f3e55a0783
Move error types to errors.go 2016-04-27 09:13:52 -04:00
Dan Buch
b7329f4968
Switch from multi-return with exit codes to ExitCoder check 2016-04-27 09:12:34 -04:00
Dan Buch
b40b62794d
Ensure README examples are runnable 2016-04-26 07:05:50 -04:00