Commit Graph

175 Commits

Author SHA1 Message Date
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
Pavel Borzenkov f1aabd5026 parse_test: add tests covering new TextUnamarshaler value support
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
2018-11-20 12:29:36 +03:00
Pavel Borzenkov 96b097bef3 parse_test: fix formatting
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
2018-11-20 12:29:15 +03:00
Pavel Borzenkov 5225bc2f3c vendor: update go-scalar to the latest version
Allows to use values (not pointer) with custom TextUnmarshaler.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
2018-11-20 12:18:45 +03:00
Alex Flint f7c0423bd1
Merge pull request #65 from illia-v/env_multiple_values
Fix providing multiple values via environment variables
2018-05-16 11:24:05 -07:00
Illia Volochii 89714b6f48 Fix the problem with errors 2018-05-14 22:18:05 +03:00
Illia Volochii fa5fe315f8 Change format from JSON to CSV 2018-05-01 12:02:44 +03:00
Illia Volochii 488fd7e82a Add one more test 2018-04-26 21:39:48 +03:00
Illia Volochii 75bf1a1525 Fix providing multiple values via environment variables 2018-04-26 21:10:44 +03:00
Alex Flint 074ee5f759
Merge pull request #64 from alexflint/repeated-unmarshaltext
Fix repeated arguments implementing TextUnmarshaler
2018-04-20 07:57:08 -07:00
Alex Flint 4d71204936 add positional test 2018-04-18 21:54:27 -07:00
Alex Flint b9375a2e66 fix repeated text unmarshal bug 2018-04-18 21:51:16 -07:00