Commit Graph

336 Commits

Author SHA1 Message Date
Alex Flint 6de9e789a9
Merge pull request #83 from alexflint/tweak-examples
Add expected outputs to all runnable examples
2019-05-03 13:14:44 -07:00
Alex Flint 3392c173d7 add expected output for usage example 2019-05-03 13:07:12 -07:00
Alex Flint e2ce620ee4 add expected outputs to all examples 2019-05-03 12:56:41 -07:00
Alex Flint c6473c4586 add tests for nested subcommands and subcommands with positionals 2019-05-03 11:21:34 -07:00
Alex Flint e55b361498 fix error message 2019-05-02 09:50:44 -07:00
Alex Flint a68d6000b6 test use of --version 2019-05-02 09:47:39 -07:00
Alex Flint 93fcb0e87d use backticks rather than backslashes in string literal 2019-05-02 09:46:11 -07:00
Alex Flint c8c61cf8bb add test for case where environment var is not present 2019-05-02 09:44:48 -07:00
Alex Flint f2f7bdbbd7 add test case for missing value in middle of argument string 2019-05-02 09:39:12 -07:00
Alex Flint a15b6ad670 add test for canParse with TextUnmarshaler 2019-05-02 09:32:23 -07:00
Alex Flint 87be2d9790 add unittests for canParse 2019-05-02 09:28:17 -07:00
Alex Flint 5b649de043 test no such subcommand 2019-05-02 09:16:33 -07:00
Alex Flint 237c5e2b23 Merge remote-tracking branch 'origin/master' into subcommand-impl 2019-04-30 13:54:49 -07:00
Alex Flint fb1ae1c3e0
Merge pull request #81 from alexflint/subcommands
small refactor to validation
2019-04-30 13:54:40 -07:00
Alex Flint 15b9bcfbb4 add several subcommand unittests 2019-04-30 13:53:14 -07:00
Alex Flint 39decf197f add several subcommand unittests 2019-04-30 13:49:55 -07:00
Alex Flint a78c6ded26 set subcommand structs to be struct pointers 2019-04-30 13:40:45 -07:00
Alex Flint af12b7cfc2 introduced path struct 2019-04-30 13:30:23 -07:00
Alex Flint 6a796e2c41 add first two subcommand tests 2019-04-30 12:54:39 -07:00
Alex Flint 4e977796af add recursive expansion of subcommands 2019-04-30 12:54:28 -07:00
Alex Flint ddec9e9e4f rename get/settable to readable/writable 2019-04-30 11:40:11 -07:00
Alex Flint 2267a58718 check error in test 2019-04-30 11:17:03 -07:00
Alex Flint 7df132abe8 check error in test 2019-04-30 11:16:10 -07:00
Alex Flint f282f71f26 minor reformat 2019-04-30 11:16:01 -07:00
Alex Flint e2dda40825 all tests passing again 2019-04-14 19:50:17 -07:00
Alex Flint e86673b20a restore process as a free func 2019-04-14 18:24:59 -07:00
Alex Flint 9edf2ebc95 Merge remote-tracking branch 'origin/master' into subcommands 2019-04-14 18:00:46 -07:00
Alex Flint b8678d4045 refactor validation 2019-04-14 18:00:40 -07:00
Alex Flint 78d30a555c
Merge pull request #80 from alexflint/simplify-positionals
Simplify handling of positionals a little
2019-04-14 18:00:17 -07:00
Alex Flint 7b1d9ef23f simplify processing of positionals a little 2019-04-14 17:30:53 -07:00
Alex Flint 42c2ab5ac6
Merge pull request #78 from alexflint/readme-spelling
minor fixes to readme
2019-04-14 17:18:01 -07:00
Alex Flint f519755eae
Merge pull request #79 from alexflint/update-deps
update deps with go mod tidy
2019-04-14 17:17:48 -07:00
Alex Flint 2952bf0265 update deps with go mod tidy; go vendor 2019-04-14 16:11:46 -07:00
Alex Flint 891a07ec29 more tweaks 2019-04-14 16:08:51 -07:00
Alex Flint e56211335f minor fixes to readme 2019-04-14 16:06:27 -07:00
Alex Flint 6266d3e5b7
Merge pull request #74 from alexflint/add-golangci
add golangci badge
2019-04-14 15:50:56 -07:00
Alex Flint 1ec799ffcf update link for golangci badge 2019-04-04 09:18:22 -07:00
Alex Flint 6b4ab7355c add golangci badge, and fix some lint issues found by the tool 2019-04-04 09:10:24 -07:00
Alex Flint 57836b82be
Merge pull request #72 from alexflint/integration-tests
Tests for installation under go 1.10 and go 1.11
2018-12-27 12:00:40 -08:00
Alex Flint f8987d1105 hook integration tests into travis 2018-12-27 11:28:34 -08:00
Alex Flint e5a1f3c999 add script to compile under go 1.10 2018-12-27 11:25:10 -08:00
Alex Flint 25cd36cac6 add test that compiles under go 1.11 without the module system 2018-12-27 11:17:24 -08:00
Alex Flint 1c224f495b add integration test that fetches and compiles code using go 1.11 2018-12-27 11:11:15 -08:00
Alex Flint f40417ef11
Merge pull request #70 from alexflint/create-go-mod
Migrate from Godep to go.mod
2018-12-27 10:54:34 -08:00
Alex Flint e85cc7a2e2 use go modules in travis 2018-11-20 13:29:41 -08:00
Alex Flint d7246f2485 go mod vendor 2018-11-20 12:09:59 -08:00
Alex Flint 27a7b2fb3d create go.mod, go.sum 2018-11-20 12:09:47 -08:00
Alex Flint d615e5c1d8 drop godeps 2018-11-20 12:07:45 -08:00
Alex Flint fb7d95b61b
Merge pull request #69 from pborzenkov/update-go-scalar
Update go scalar to the latest version
2018-11-20 10:45:00 -08:00
Pavel Borzenkov a6af419fff README: update TextUnmarshaler example
Values are much more convenient to use in argument structs, so update
README to use them instead of pointers in the example as we now support
this.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
2018-11-20 12:32:32 +03:00