Dan Buch
5c641d69b4
Merge branch 'hidden_command' of https://github.com/psmit/cli into psmit-hidden_command
2016-05-03 05:50:36 -04:00
Dan Buch
cd92adcb75
Further simplifying default flag stringer func
2016-05-02 19:58:16 -04:00
Dan Buch
6089d723a8
Use existing prefixedNames func
2016-05-02 19:52:39 -04:00
Dan Buch
7de151883c
Added more notes about usage formatting changes
2016-05-02 19:48:35 -04:00
Dan Buch
e56207bd51
Merge branch 'vieux-change_varargs_usage' into pluggable-flag-printer
2016-05-02 19:45:56 -04:00
Dan Buch
2e4d25db14
Merge branch 'change_varargs_usage' of https://github.com/vieux/cli into vieux-change_varargs_usage
2016-05-02 19:45:21 -04:00
Dan Buch
69a8e25f3d
Make flag usage rendering more consistent; show default values
2016-05-02 19:42:08 -04:00
Dan Buch
23af5dd643
Rename flag stringer func bits for clarity, consistency
2016-05-02 13:07:57 -04:00
Dan Buch
22773b14c1
Allow for pluggable flag-level help text formatting
...
by defining `cli.DefaultFlagStringFunc` with a default value that uses
`withEnvHint`, conditionally running a given flag's `FormatValueHelp` if
present.
Closes #257
2016-05-02 13:05:21 -04:00
Dan Buch
5c36fa18d9
Change refs from cli.go to cli
...
since the days of this being a single-file library are long gone.
2016-05-02 11:51:54 -04:00
Dan Buch
edc8458637
Merge branch 'PaulMakepeace-fix-err-assertion' into v1.16.0-prep
2016-05-02 11:42:18 -04:00
Dan Buch
ecf21a7a09
Merge branch 'fix-err-assertion' of https://github.com/PaulMakepeace/cli into PaulMakepeace-fix-err-assertion
2016-05-02 11:41:51 -04:00
Dan Buch
fe67cb0f3d
Add note about error handling fix, prep 1.16.0 section
2016-05-02 11:41:01 -04:00
Dan Buch
4b4c07bd4f
Ensure HandleAction/HandleExitCoder work correctly with *ExitError
...
Closes #376
2016-05-02 11:32:22 -04:00
Dan Buch
1cda555a05
Merge branch 'action-err' of https://github.com/kytrinyx/cli into kytrinyx-action-err
2016-05-01 10:26:54 -04:00
Dan Buch
b738841df8
Add some explicit docs about help text customization
2016-05-01 10:06:12 -04:00
Dan Buch
007295e509
Cleaning up the recently-introduced deprecations
...
to ensure the intent, responsibility, and migration path are all more clear.
2016-05-01 09:09:54 -04:00
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
Dan Buch
a9afed5b15
Prepping v1.15.0 release
2016-04-30 13:48:08 -04:00
Dan Buch
896d2fd3c1
Add a note to CHANGELOG about dot-delimited YAML key lookup
2016-04-30 13:27:11 -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
Dan Buch
e2161d7f64
Minor changelog update bits
2016-04-30 09:54:44 -04:00
Dan Buch
06c01a4bba
A few tweaks based on feedback in #361
2016-04-29 03:01:57 -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
61d4175525
Merge remote-tracking branch 'origin/master' into txgruppi-develop
2016-04-28 16:20:02 -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
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
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
Dan Buch
a17c8cf1d8
Rename func type suffixes Fn->Func and add OnUsageErrorFunc
2016-04-25 18:29:05 -04:00
Dan Buch
10c8309d84
Merge branch 'develop' of https://github.com/txgruppi/cli into txgruppi-develop
2016-04-25 18:10:10 -04:00
Dan Buch
95d18920ad
Linkify release headings
2016-04-25 15:58:30 -04:00
Dan Buch
ed0056d1c1
Add CHANGELOG.md with backfilled releases
2016-04-25 15:48:21 -04:00
Dan Buch
e04e926f10
Update Travis config to run against more versions on faster CI
2015-06-11 01:27:57 -04:00
Dan Buch
4407569431
Merge branch 'master' into fix-231
2015-06-11 01:23:20 -04:00
Dan Buch
1dce44d781
Adding section in README about env var cascade
...
as well as moving a line back up where it belongs
2014-12-01 22:46:57 -05:00
Dan Buch
dca23da84b
Merge remote-tracking branch 'origin/master' into multi-env-var
2014-12-01 22:44:36 -05:00