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
Alex Flint
74dd5a2c5a
separate scalar.CanParse from isBoolean
2018-04-18 21:33:46 -07:00
Alex Flint
6f2f3b4bf6
drop setScalar
2018-04-18 21:23:08 -07:00
Alex Flint
b1eda2c7b6
Merge pull request #62 from mwlazlo-tls/master
...
Custom parsers implementing encoding.TextMarshaler() can have default…
2018-04-15 18:34:32 -07:00
Wlazlo, Matt
51337ded77
fixed example comment, test coverage issue
2018-04-16 11:07:48 +10:00
Wlazlo, Matt
d4cc703210
Custom parsers implementing encoding.TextMarshaler() can have default values printed via --help
2018-04-13 14:46:24 +10:00
Alex Flint
0cc8e30fd6
Merge pull request #61 from alexflint/negative-values
...
handle negative values
2018-02-05 10:02:42 -08:00
Alex Flint
a0df5f3391
handle negative values
2018-01-13 14:20:00 -08:00
Alex Flint
59fccacb26
Merge pull request #59 from rickb777/master
...
Altered help tag parsing to allow comma and colon
2017-10-02 17:07:17 -07:00
Rick
ba9514f0be
Further clarification
2017-10-02 14:36:23 +01:00
Rick
d7961941f0
Altered help tag parsing to reduce the constraints on help text content; old behaviour is retained for backward compatibility
2017-10-02 14:18:41 +01:00
Alex Flint
398a01ebab
Merge pull request #57 from rickb777/master
...
Allow spaces after each comma in tags
2017-09-27 14:56:33 -07:00
Rick
fb97335a13
Allow spaces after each comma in tags
2017-09-16 12:05:53 +01:00
Alex Flint
cef6506c97
Merge pull request #54 from k3a/master
...
Required multiple positionals
2017-03-30 14:10:29 -07:00
Mario Hros
992acaf408
tests
2017-03-30 20:47:59 +02:00