Dan Buch
a73e54fe92
Merge remote-tracking branch 'origin/master' into drop-go1.1.2-testing
2016-07-11 05:11:11 -04:00
Dan Buch
fa120b0c1d
Drop testing of go1.1.2
...
since it's already a fairly diverged set of tests, and the fact that it passes
appears to be causing issues with overall CI build status, which is probably
some odd issue that surfaces because we're using `matrix.include`
2016-07-10 19:27:39 -04:00
Dan Buch
3c5afd4757
Hide help command for category tests
2016-06-22 09:48:39 -04:00
Dan Buch
be875c395c
Add test to verify help command usage
2016-06-22 09:41:42 -04:00
Dan Buch
5c7afce5b8
Add help command before category scan/sort
2016-06-22 09:34:24 -04:00
Dan Buch
e1de87aedd
Update license text
2016-06-21 12:52:25 -04:00
Dan Buch
c20f912780
Add stronger warning about v2 volatility
...
and make **Notice** style more consistent
2016-06-20 10:57:45 -04:00
Dan Buch
ee69d3c011
Generate TOC in README
...
and assert it is up to date
2016-06-16 11:47:19 -04:00
Dan Buch
a0e694ed72
Add UintFlag, Uint64Flag types and supporting code
2016-06-16 11:13:32 -04:00
Dan Buch
537f5beb66
Tweaks to Int64Flag PR
2016-06-16 10:14:28 -04:00
Dan Buch
5a3515fdf8
Focus on catching fewer panics in HandleAction
...
so that "unknown" panics can still bubble up.
2016-06-09 17:32:00 -04:00
Dan Buch
d645386c59
Mention #448 fix in change log
2016-06-08 17:18:25 -04:00
Dan Buch
7cd5bed6cb
Backporting flagValue func from v2 branch
2016-06-08 10:34:44 -04:00
Dan Buch
86e4f9526d
Merge branch 'master' of https://github.com/joshuarubin/cli into joshuarubin-master
2016-06-08 10:31:40 -04:00
Dan Buch
288b636ba3
Modifying full API example for more migrator exercise
2016-06-01 22:27:52 -04:00
Dan Buch
b5c48311fa
Ensure the full API example really runs
2016-06-01 14:06:51 -04:00
Dan Buch
1c81757e1f
Add more v1 API examples
2016-06-01 13:28:27 -04:00
Dan Buch
0990e4b2ad
Update appveyor badge URL
...
to point to new team name
2016-06-01 10:46:39 -04:00
Dan Buch
41310fbe1b
Enable more examples as runnable in README
...
so that they can be verified by the migrator script over in the v2 branch.
2016-05-31 15:49:48 -04:00
Dan Buch
f2d92acb5d
Point at correct gfmxr location
2016-05-24 16:07:30 -04:00
Dan Buch
e4666418bb
Add (and backfill) some notes about platform support
2016-05-23 20:34:33 -04:00
Dan Buch
f136df348e
Only test latest go on osx
2016-05-23 20:21:14 -04:00
Dan Buch
dcc28a1b2b
Enable osx testing
2016-05-23 20:19:54 -04:00
Dan Buch
377aca16cf
Trivial updates to appveyor config
2016-05-23 19:39:04 -04:00
Dan Buch
b37df9de86
See why README examples are unhappy on Windows
2016-05-22 20:35:25 -04:00
Dan Buch
4566119b39
Close temporary file before running go tool cover
2016-05-22 19:44:21 -04:00
Dan Buch
9491a91336
Try to run a python script
2016-05-22 19:37:59 -04:00
Dan Buch
d277cbf893
Use clone_folder in appveyor.yml
...
instead of dir moving shenanigans
2016-05-22 19:32:48 -04:00
Dan Buch
531c7defe7
Trying xcopy instead of move
2016-05-22 19:18:38 -04:00
Dan Buch
288d62118a
Try to get appveyor.yml working again
2016-05-22 19:15:05 -04:00
Dan Buch
71b858d796
Skipping gfmxr on go1.1, too
2016-05-21 08:53:15 -04:00
Dan Buch
9132ebec9e
Customize install step for go1.1.2
2016-05-21 08:53:09 -04:00
Dan Buch
00bd2a95b2
Do not test ./altsrc on go1.1
...
as the YAML library requires go1.2+
2016-05-21 08:53:01 -04:00
Dan Buch
61e5e9362f
Clarify state of v1 branch
2016-05-16 10:48:21 -04:00
Dan Buch
8af550936f
Add another bit about pinning to v1
2016-05-16 10:46:43 -04:00
Dan Buch
1beb5f66cd
Add some docs about the v2 branch
2016-05-16 10:43:05 -04:00
Dan Buch
50b384d904
Separate badges for package coverage
2016-05-10 14:51:27 -04:00
Dan Buch
6f3bb94eae
Correct assertion text
2016-05-10 13:51:54 -04:00
Dan Buch
b9d96954ca
Fix command alias printing in help text
...
Closes #405
2016-05-10 13:41:43 -04:00
Dan Buch
1398157654
Use argparse in runtests
...
like Zeus intended
2016-05-10 08:16:33 -04:00
Dan Buch
33f5de5f18
Move the ./runtests changelog entry to up Unreleased
2016-05-10 08:09:27 -04:00
Dan Buch
2b4b13096f
Merge remote-tracking branch 'origin/master' into coverage
2016-05-09 18:53:45 -04:00
Dan Buch
2fcbd9d729
Preparing for v1.17.0 release
2016-05-09 10:52:31 -04:00
Dan Buch
5fa09b8e23
Strip trailing slash for cleanliness
2016-05-09 09:00:22 -04:00
Dan Buch
d94fdb3e84
Break runtests back into steps for more granular CI feedback
2016-05-09 08:58:20 -04:00
Dan Buch
2df2fa514d
Skip coverage bits on < go1.2
2016-05-09 08:49:38 -04:00
Dan Buch
b9f33fbe6d
Add a vet/test runner script with coverage on by default
2016-05-09 08:41:01 -04:00
Dan Buch
5a5fa990e1
Merge remote-tracking branch 'origin/master' into exit-nonzero-for-unknown-subcommand
2016-05-09 00:59:36 -04:00
Dan Buch
5704421e7b
Merge remote-tracking branch 'origin/master' into add-global-boolt
2016-05-09 00:44:27 -04:00
Dan Buch
dfa9a87bee
Add tests for App.VisibleCategories & App.VisibleCommands
2016-05-08 23:54:12 -04:00
Dan Buch
97d2df6dd7
Merge remote-tracking branch 'origin/master' into psmit-hidden_command
2016-05-08 18:44:38 -04:00
Dan Buch
11ad2b36c8
Assert output in some README examples
2016-05-04 19:41:33 -04:00
Dan Buch
cc481d6b0e
Adjust command hiding to use similar convention as hidden flags
...
plus breaking out "setup" portion of `App.Run` into its own method, cleaning up
some bits of the help templates, and allowing for runtime opt-in of displaying
template errors to stderr.
2016-05-03 06:54:05 -04:00
Dan Buch
f397b1618c
Adding test for Command.Hidden handling in help text
2016-05-03 05:51:26 -04:00
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