Commit Graph

345 Commits

Author SHA1 Message Date
Alex Flint 1e81bb6866 fix the mappings-with-commas example 2021-04-20 12:23:49 -07:00
Alex Flint 4354574615
Merge pull request #151 from alexflint/fix-lint
Fix lint issue in reflect.go
2021-04-20 12:20:36 -07:00
Alex Flint 473453d8c8 fix lint issue 2021-04-20 12:14:14 -07:00
Alex Flint a84487a43a updated the example for mappings with commas 2021-04-19 21:35:09 -07:00
Alex Flint a0937d1b58
Merge pull request #150 from alexflint/push-coverage-up-more
Push test coverage up to 100%
2021-04-19 21:27:53 -07:00
Alex Flint 01a9fab8d7 clean up environment variable tests 2021-04-19 21:22:12 -07:00
Alex Flint fe4a138ac8 test coverage 100% !! 2021-04-19 21:03:43 -07:00
Alex Flint 6a01a15f75
Merge pull request #149 from alexflint/parse-into-map
Add support for parsing into a map
2021-04-19 19:27:31 -07:00
Alex Flint d4b9b2a008 push coverage up even more 2021-04-19 19:23:08 -07:00
Alex Flint a80336128c more test coverage 2021-04-19 14:50:05 -07:00
Alex Flint 57f610284f add an runnable example for mappings 2021-04-19 14:01:29 -07:00
Alex Flint 91214e01ea add an example of parsing into a map to the readme 2021-04-19 13:59:00 -07:00
Alex Flint 0100c0a411 push code coverage up 2021-04-19 13:48:07 -07:00
Alex Flint bb4e7fd4b0 add unittests for maps as environment variables with the separate flag 2021-04-19 13:33:31 -07:00
Alex Flint ccf882dca7 finish adding comments to spec 2021-04-19 13:25:11 -07:00
Alex Flint 9949860eb3 change "kind" to "cardinality", add support for maps to parser 2021-04-19 13:21:04 -07:00
Alex Flint 23b96d7aac refactor canParse into kindOf 2021-04-19 12:49:49 -07:00
Alex Flint 1dfefdc43e factor setSlice into its own file, add setMap, and add tests for both 2021-04-19 12:10:53 -07:00
Alex Flint f4eb7f3a58
Merge pull request #137 from alexflint/optional-long
Optional long names
2021-04-16 21:03:14 -07:00
Alex Flint 113aef7114
Merge pull request #147 from alexflint/ci-go16
Add go 1.16 to CI
2021-04-16 21:01:28 -07:00
Alex Flint cec6b0d378 add go 1.6 to CI 2021-04-16 20:45:13 -07:00
Alex Flint 172800ff9a fix a comment 2021-04-16 20:44:18 -07:00
Alex Flint cf2205c84d
Merge pull request #144 from leozhantw/refactor/remove-unused-function
refactor: remove unused function
2021-04-07 11:32:48 -07:00
LeoZhan 4f2ab5c009 refactor: remove unused function 2021-04-08 00:20:56 +08:00
Alex Flint ec285c8ec4 Merge remote-tracking branch 'origin/master' into optional-long 2021-01-31 19:43:30 -08:00
Alex Flint bd6844a20d
Merge pull request #138 from alexflint/ci-go15
Add go1.15 to CI
2021-01-31 19:43:20 -08:00
Alex Flint efe5cdf4da replace "name" and "typ" by storing the original StructField 2021-01-31 19:40:38 -08:00
Alex Flint b099bc916b fix typo 2021-01-31 19:27:06 -08:00
Alex Flint bfa189218e add go1.15 to CI, drop go1.11 2021-01-31 19:25:17 -08:00
Alex Flint 2a91531140 Merge remote-tracking branch 'origin/master' into optional-long 2021-01-31 19:20:28 -08:00
Alex Flint 788c166025 test that short-only options are printed first in the help message 2021-01-31 19:15:49 -08:00
Alex Flint 2a23168641
Merge pull request #136 from alexflint/ignore-unexported
Skip unexported fields
2021-01-31 18:46:05 -08:00
Alex Flint aa6cb95149 skip unexported fields 2021-01-31 18:29:22 -08:00
Andrew Morozko 438a91dba1 Skip right column if the left is empty 2020-12-20 03:51:33 +03:00
Andrew Morozko 04c3fdbd80 Updated readme 2020-12-20 03:07:18 +03:00
Andrew Morozko faebd3e0f2 Optional long arguments 2020-12-20 02:54:03 +03:00
Alex Flint b91c03d2c6
Merge pull request #123 from alexflint/drop-vendor
Drop vendor directory
2020-09-27 09:28:24 -07:00
Alex Flint 7b1d8470a9 drop vendor directory 2020-08-12 15:49:47 -07:00
Alex Flint 96c756c382
Merge pull request #122 from alexflint/short-and-long
Add examples showing how to override the short and long versions of option
2020-08-06 16:52:47 -07:00
Alex Flint c47edd0324 add documentation and examples showing how to override the short and long option names together 2020-08-06 16:41:45 -07:00
Alex Flint a68c3d0653
Merge pull request #120 from alexflint/dedent-tag-loop
Move empty tag check inside loop
2020-07-06 09:59:15 -07:00
Alex Flint 6be0398e80 move empty tag check inside the loop 2020-07-06 09:54:23 -07:00
Alex Flint 2a3b5ea3cb
Merge pull request #116 from denysvitali/master
feat(usage): Include env variable in usage
2020-06-03 11:07:27 -04:00
Denys Vitali d4bb56e096 feat(usage): Include env variable in usage 2020-06-03 10:05:20 +02:00
Alex Flint 912ef0c3e4
Merge pull request #114 from alexflint/migrate-to-codecov
Upload coverage to codecov
2020-04-17 16:41:42 -04:00
Alex Flint 2bc58b597b replace coveralls badge with codecov 2020-04-17 16:37:00 -04:00
Alex Flint 65205f111c fix github actions config 2020-04-17 16:33:48 -04:00
Alex Flint 68f1691080 upload to codecov 2020-04-17 16:26:49 -04:00
Alex Flint f78dec8769
Merge pull request #113 from alexflint/prettify-readme-header
move some stuff around in the readme header; add sourcegraph badge
2020-04-17 16:18:07 -04:00
Alex Flint 7a71aa1b20 add banner image 2020-04-17 16:09:24 -04:00