Commit Graph
100 Commits
Author SHA1 Message Date
Dan Buch 47a412375f Resolved compile-time errors since merging from v1 2017-08-04 12:00:22 -04:00
Dan Buch a61867e5e6 Merge remote-tracking branch 'origin/v1' into merging-from-v1 2017-08-04 11:59:27 -04:00
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 812fa64d8e Skip migrations on go < 1.3
because there won't be a `gfmrun` around to extract examples
2016-08-22 17:54:51 -04:00
Dan Buch 87f9c6d44a Merge remote-tracking branch 'origin/master' into merging-from-v1 2016-08-22 17:47:11 -04:00
Dan Buch c0cf41eb54 Skip gfmrun installation and tests below go1.3 2016-08-22 15:26:33 -04:00
Dan Buch c5d3a341c4 Adjust some gfmrun output matches
which I assume became mismatched during merge
2016-08-22 14:56:38 -04:00
Dan Buch 81c242dda6 Merge remote-tracking branch 'origin/master' into merging-from-v1 2016-08-22 14:41:56 -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 ca2a0f72bf Ensure context lookups traverse lineage
Closes #487
2016-07-23 21:53:55 -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 c360161d62 Merge remote-tracking branch 'origin/v1' into merging-from-v1 2016-07-23 14:52:58 -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 67cf919419 Fix some trailing gfmxr refs 2016-07-16 12:24:16 -04:00
Dan Buch d3b67339c5 Merge remote-tracking branch 'origin/v1' into merging-from-v1 2016-07-16 12:15:38 -04:00
Dan Buch 2c1fd1510c Switch to renamed gfmrun tool 2016-07-16 09:12:42 -04:00
Dan Buch a51cb870fb Wrap a long line for flake8 2016-07-15 21:49:55 -04:00
Dan Buch fcaccb600b Run flake8 checks on generate-flag-types 2016-07-15 08:45:46 -04:00
Dan Buch f7b2b93ffa Merge remote-tracking branch 'origin/v1' into merging-from-v1 2016-07-14 17:50:16 -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 99621d571e Merge remote-tracking branch 'origin/v2' into declarativeness 2016-06-22 23:07:20 -04:00
Dan Buch 796679fd8b Clean out urfave/cli.v2.a, wrap long line 2016-06-22 16:57:18 -04:00
Dan Buch 76d44cff06 Ensure gfmxr installs with cli.v2
and *then* make this repo shadow cli.v2
2016-06-22 12:55:38 -04:00
Dan Buch df685fbacc Remove NewApp initializer
and move defaulting to `App.Setup`
2016-06-22 12:47:57 -04:00
Dan Buch 0f135b318e Merge remote-tracking branch 'origin/v1' into merging-from-v1 2016-06-22 12:03:21 -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 5249491f24 Merge remote-tracking branch 'origin/v1' into merging-from-v1 2016-06-21 14:31:01 -04:00
Dan Buch e1de87aedd Update license text 2016-06-21 12:52:25 -04:00
Dan Buch d63e456b33 Merge remote-tracking branch 'origin/v1' into merging-from-v1 2016-06-21 12:50:05 -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 77722a46e1 Explicitly run markdown-toc with bash on Windows 2016-06-18 16:46:41 -04:00
Dan Buch 8cfdccbf0f More tweaks to how ./runtests toc runs on Windows 2016-06-18 16:37:11 -04:00
Dan Buch d2596f4c86 Disable gfmxr debugging on Windows 2016-06-18 16:31:05 -04:00
Dan Buch 2569db1dc9 Where is npm bindir? 2016-06-18 16:29:33 -04:00
Dan Buch 21219e2b65 Flush stderr after every print 2016-06-18 16:28:50 -04:00
Dan Buch 0ef116788d Run npm install in cmd subshell on Windows 2016-06-18 16:24:46 -04:00
Dan Buch dec06d2837 Dynamically find path of markdown-toc executable 2016-06-18 16:20:29 -04:00
Dan Buch 8eaf6be8fa Trying to powershell better 2016-06-18 16:04:39 -04:00
Dan Buch c24cac3f93 Try to YAML betterer 2016-06-18 15:59:54 -04:00
Dan Buch 29dc3f0c7c More tweaks to npm usage on Windows 2016-06-18 15:59:00 -04:00
Dan Buch 11311185a0 Switch back to symlinking on Linux and Mac
and fix existence of markdown-toc on Windows
2016-06-18 15:47:23 -04:00
Dan Buch a8027b8491 Use git to make a copy into urfave/cli.v2 2016-06-18 15:20:35 -04:00
Dan Buch 7cb40bd576 Fighting more with cmd 2016-06-17 11:36:23 -04:00
Dan Buch 98218064c0 Straighten out robocopy exit code 2016-06-17 11:31:18 -04:00
Dan Buch 54df4b6c6d Try a more fancy robocopy command 2016-06-17 11:20:49 -04:00
Dan Buch c07b18df3a Try out robocopy maybe? 2016-06-17 11:13:55 -04:00
Dan Buch 5b14460f4e Use xcopy instead of mklink on Appveyor 2016-06-17 10:48:56 -04:00
Dan Buch cafccda7b9 Install gfmxr after symlinking into gopkg.in/urfave/cli.v2 2016-06-17 10:42:44 -04:00
Dan Buch 3357fcd631 Try linking to gopkg.in/urfave/cli.v2 on Appveyor, too 2016-06-17 10:31:05 -04:00
Dan Buch 6e6a80c4d3 Try symlinking into gopkg.in/urfave/cli.v2 better 2016-06-17 10:19:23 -04:00
Dan Buch dc55e12942 Pull the full API example up a level 2016-06-17 10:01:34 -04:00
Dan Buch 9e21e0e342 Fix up the full API example in the README 2016-06-17 10:00:12 -04:00
Dan Buch 0c9b549918 Ensure remaining v1 additions are v2 compatible 2016-06-17 09:54:54 -04:00
Dan Buch 6c628a1a88 Merge remote-tracking branch 'origin/v1' into merging-from-v1 2016-06-17 09:11:36 -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 8ea4b523d2 Style cleanups of full API example in README 2016-06-10 13:00:33 -04:00
Dan Buch d5abb165ee Merge remote-tracking branch 'origin/master' into merging-from-v1 2016-06-10 12:55:41 -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 c413767d25 Fixing some flake8 gripes 2016-06-02 04:45:13 -04:00
Dan Buch 6dcb4fdfa4 Migrator script output tweaks, debug logging 2016-06-02 04:43:31 -04:00
Dan Buch 73acde8e69 Make migrators ordered, clean up some duplication 2016-06-02 04:37:36 -04:00
Dan Buch 288b636ba3 Modifying full API example for more migrator exercise 2016-06-01 22:27:52 -04:00
Dan Buch 92b70c22ac Add more v1 -> v2 migrators 2016-06-01 19:11:05 -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 cb1e4c2d5e Merge remote-tracking branch 'origin/v1' into v2 2016-06-01 11:18:40 -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 733431d5c2 Wrap a long line 2016-05-31 20:59:09 -04:00
Dan Buch cbd0e8231b Add migrator for stringly values of flag "Name"
and reorganize things a bit for less jumpy editing
2016-05-31 20:58:12 -04:00
Dan Buch c9011d8351 Add migrators for context.Args() indexing and EnvVars 2016-05-31 16:39:56 -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 e3a099f7c5 Cleanups per flake8 and code review 2016-05-30 15:24:16 -04:00
Dan Buch 659e1c1e0b Fill in migrations for cli.Exit and BoolFlag with Value 2016-05-30 15:16:19 -04:00
Dan Buch 2cfb957033 Run migration tests via ./runtests 2016-05-30 13:59:45 -04:00
Dan Buch 586b49ded8 Give up and use sudo on OS X again 2016-05-30 12:44:41 -04:00