Dan Buch
f59114b410
Update os, image, golang, and python versions used in appveyor
2017-08-03 22:59:38 -04:00
Dan Buch
184ffb5e57
Use os matrix instead of explicit matrix.include
2017-08-03 15:38:19 -04:00
Dan Buch
8164aa88ca
Update travis config
...
to only test on 1.8.x, and ensure we route to Ubuntu Trusty and a
recent macOS image.
2017-08-03 15:07:56 -04:00
Dan Buch
c0cf41eb54
Skip gfmrun installation and tests below go1.3
2016-08-22 15:26:33 -04:00
Dan Buch
363d9c9a31
Add a hack so that zsh completion only runs for zsh
2016-07-24 17:29:13 -04:00
Dan Buch
1cbb9a7f30
Merge branch 'zsh' of https://github.com/jereksel/cli into jereksel-zsh
2016-07-24 17:12:43 -04:00
Dan Buch
e9688813e4
Refine error handling behavior
...
so that exit 1 happens as long as error is non-nil
2016-07-24 12:09:05 -04:00
Dan Buch
dd253d122c
Write err to stderr, exit 1 if err != ""
...
Closes #475
2016-07-24 11:57:51 -04:00
Dan Buch
76fb6d2ab7
Pin testing on go 1.4.2
...
since 1.4.3 is lacking `vet`
2016-07-23 18:16:45 -04:00
Dan Buch
71a99921b4
Bump tested go versions
...
and (maybe?) take advantage of support for N.x version syntax
2016-07-23 17:52:19 -04:00
Dan Buch
8d4b6abc2b
Ignore failed goimports installs
...
since we only use it with go versions >= 1.5 anyway
2016-07-23 14:39:14 -04:00
Dan Buch
2c1fd1510c
Switch to renamed gfmrun tool
2016-07-16 09:12:42 -04:00
Dan Buch
cbaa419c8f
Generate all code when checking for changes
2016-07-14 16:02:57 -04:00
Dan Buch
8a7c9b1e68
Merge remote-tracking branch 'origin/master' into flag-context-gen
2016-07-12 13:15:25 -04:00
Dan Buch
8d976fe182
Get package choices from source of truth
2016-07-11 06:02:49 -04:00
Dan Buch
c3b03b8437
Adding flag type generation for altsrc
...
and a mention of this whole thing in the change log
2016-07-11 06:02:49 -04:00
Dan Buch
06f64bd31d
Update docs and change log regarding go1.1 drop
2016-07-11 05:16:14 -04:00
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
77f1130e65
Generate flag type lookup funcs
2016-07-10 12:50:57 -04:00
Dan Buch
3a8ad862a6
Add help text/docs for generate-flag-types script
2016-07-10 12:26:09 -04:00
Dan Buch
111ea8b9d3
Unbreak runtests toc target
2016-06-23 09:59:04 -04:00
Dan Buch
ee0375e901
Nope, forget about toc on Windows
2016-06-23 09:42:33 -04:00
Dan Buch
1a9f445800
Try to run markdown-toc on Windows again (???)
2016-06-23 09:42:02 -04:00
Dan Buch
2455dd1f29
Skip go generate test on Windows
2016-06-23 01:09:21 -04:00
Dan Buch
d1081fb23f
Skip go generate check on older versions
2016-06-23 01:08:19 -04:00
Dan Buch
6185b8d8fd
Generate code for flag types and context accessors
2016-06-23 00:56:44 -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