Commit Graph

  • de00f3b71c ci: Test against Go 1.20 and 1.21 (#404) Abhinav Gupta 2023-12-10 16:03:29 -08:00
  • 6997afd4f9 chore(deps): update actions/setup-go action to v5 (#400) renovate[bot] 2023-12-11 10:42:05 +11:00
  • 27806be88f chore(deps): update actions/checkout action to v4 (#399) renovate[bot] 2023-12-11 10:41:53 +11:00
  • d63c4d71e9 chore(deps): update module github.com/chzyer/readline to v1 (#401) renovate[bot] 2023-12-11 10:41:39 +11:00
  • 7391017a8c Drop references to io/ioutil (#403) Abhinav Gupta 2023-12-10 15:40:40 -08:00
  • 923c202213 hermit: Add back Go package (#402) Abhinav Gupta 2023-12-10 15:31:04 -08:00
  • 79809cbb47 chore(deps): update all non-major dependencies (#398) renovate[bot] 2023-12-11 09:39:58 +11:00
  • a86bda490b golangci-lint: Upgrade, fix issues (#397) Abhinav Gupta 2023-12-10 14:37:07 -08:00
  • 4ca2606342 mapper_windows_test: assert.NotZero for nil check (#396) Abhinav Gupta 2023-12-10 00:40:40 -08:00
  • 3263463a7e Fix Windows tests, verify in CI (#394) Abhinav Gupta 2023-12-09 20:42:50 -08:00
  • 815ba68265 Revert "fix: set trailing positional arguments to active" Alec Thomas 2023-12-10 08:21:36 +11:00
  • b36879c6d4 Configure renovate Alec Thomas 2023-12-02 12:35:56 +11:00
  • 575d5b1d34 fix: set trailing positional arguments to active Alec Thomas 2023-11-17 15:37:44 +11:00
  • 0ecd272e23 fix: use LookupEnv to check if envar is actually set Alec Thomas 2023-11-14 09:36:03 +11:00
  • 2df767872e fix for counter type rendering as INT (#388) eli 2023-11-12 22:08:13 -08:00
  • 93d31e17f4 Drop automatic message prefix from command errors (#384) Jan Heuermann 2023-10-07 09:15:33 +02:00
  • 46c03841ed fix: support IsBool() on MapperValue implementations. Alec Thomas 2023-09-30 16:06:34 +08:00
  • 2af1ea57d6 docs: add list of configuration loaders to README Alec Thomas 2023-09-22 20:33:35 +10:00
  • 1e6f15faac Add EnvFlag util (#378) Artem Klevtsov 2023-09-17 06:39:43 +07:00
  • 074ccd0906 fix: remove showing app name twice in errors (#368) Mitar 2023-07-21 05:08:56 -07:00
  • a9be85c4d3 Bump golang.org/x/crypto in /_examples/server (#352) dependabot[bot] 2023-02-24 17:39:03 -08:00
  • 9610ed62d9 feat: support multiple env variables (#349) Denis Titusov 2023-01-31 22:39:30 +03:00
  • 37e801405f fix: handle contents of tags properly by unquoting them when necessary Florian Loch 2023-01-25 09:20:43 +01:00
  • 95a465b4b5 feat: add FlagNamer option Alec Thomas 2023-01-13 09:33:59 -05:00
  • 919e70103f feat: add filecontent named mapper Alec Thomas 2022-11-30 22:27:36 +11:00
  • 9b08b89396 fix: ensure pointers can be detected as bools Alec Thomas 2022-11-26 11:20:55 +11:00
  • bf0cbf5d7c feat: Embed() option and Context.Call() Alec Thomas 2022-11-22 23:30:10 +11:00
  • d974d7270a feat: add support for camelCase JSON keys Alec Thomas 2022-11-13 10:16:22 +11:00
  • 32e8ffc6fd Fix large number processing for unsigned types Jan Heuermann 2022-10-17 14:05:22 +02:00
  • c62bf25854 Fix loading large integers from JSON files (#334) Sever Băneșiu 2022-09-21 17:10:58 -07:00
  • 8b826182d8 fix: tests Alec Thomas 2022-09-21 07:33:27 +10:00
  • 0c6a9f3a3d Merging issue 280 with master changes (#296) Jacob Hochstetler 2022-09-20 07:55:05 -05:00
  • 9c8b401de0 Cumulative argument needs to be last (#331) Michal Kralik 2022-09-20 14:47:41 +02:00
  • 15aa6d8d4e Fix Readme.md noisersup 2022-09-17 01:46:42 +02:00
  • 3371bd6167 fix: go1.19 specific tests for text wrapping Michal Kralik 2022-08-26 09:17:44 +02:00
  • f48da244f5 change VersionFlag to a BeforeReset hook pyqlsa 2022-07-27 18:12:26 -07:00
  • a05a0c20ba Add Active member to Nodes and Values (#319) pyqlsa 2022-07-19 22:43:15 -07:00
  • f9bc630ef8 Panic on duplicate command names (#317) Michal Kralik 2022-07-17 11:31:21 +02:00
  • 81070a043b fix: os-specific builds Alec Thomas 2022-06-21 22:35:47 +10:00
  • e75e1ca88a refactor: switch to alecthomas/assert Alec Thomas 2022-06-21 20:52:59 +10:00
  • 0066abb973 fix: Reset() should always be called before anything else Alec Thomas 2022-06-15 20:45:10 +10:00
  • edc47ebc34 helpful error message when flag is missing values (#310) pyq-lsa 2022-06-11 14:29:19 -07:00
  • 9d72e94240 Update yaml v3 to v3.0.1 to fix CVE 2022 28948 (#309) James Lamb 2022-06-10 12:16:25 +10:00
  • 195d56c42e Remove references to flag HelpProviders Keilin Olsen 2022-05-17 12:05:37 +10:00
  • 6042c4b10e Add example of HelpProvider + README Keilin Olsen 2021-11-30 23:18:58 +11:00
  • 1db2ea27af Move old shell/main to subdirectory Keilin Olsen 2021-11-30 23:34:39 +11:00
  • 0aaa4c1199 fix: existing file/dir always checks default pyq-lsa 2022-05-01 11:47:34 -07:00
  • 3c2164486d fix linux build David Shiflet 2022-05-16 16:31:58 -04:00
  • 29685e7da6 treat \ as escape only before a separator David Shiflet 2022-05-03 21:19:51 -04:00
  • 5538b7f045 change help hook and call Reset later pyq-lsa 2022-05-01 13:17:44 -07:00
  • 7c6ff10d33 fix: values that look like flags would not be parsed correctly Alec Thomas 2022-04-08 06:41:09 +10:00
  • 556f8b773b chore: pin Go-1.17.8 Alec Thomas 2022-03-18 18:56:02 +11:00
  • 89b2806f6a Switch to the standard errors API, that was introduced in 1.13 (#273) Denis Titusov 2022-03-18 10:54:29 +03:00
  • 7a63525420 feat: AutoGroup option Alec Thomas 2022-03-11 22:51:12 +11:00
  • 1939f2cda0 Remove extraneous + in README.md hasheddan 2022-02-26 17:36:15 -05:00
  • cc81f03a38 Support listing enums in specified order (#274) Ali Eren Öztürk 2022-02-21 13:36:14 +03:00
  • 72024dd44a fix: hydrate pointer fields Alec Thomas 2022-02-16 13:26:05 +11:00
  • ab085f771e fix required/xor behavior w/ > 2 flags pyq-lsa 2022-01-29 13:23:26 -08:00
  • e49700181c fix: Change the application flags order avoiding panics This commit solves issue alecthomas/kong#264 Denis Titusov 2022-01-27 12:21:20 +03:00
  • 38c56226ba fix: correct line number for json example (#265) leon332157 2022-01-24 15:45:25 -05:00
  • 3987efba86 fix: issue with symlinked temp dirs Alec Thomas 2022-01-05 20:01:51 +11:00
  • a7d3850e80 Cmd can be passthrough now, too. Mitar 2022-01-04 21:58:56 +01:00
  • 76d5ed9ac1 Small improvements to ChangeDirFlag. Mitar 2022-01-03 21:28:14 +01:00
  • f5bd1465d8 Add ChangeToFlag to allow changing the current working directory. Mitar 2021-12-20 23:26:15 +01:00
  • 88dcc90dde Document nested data structure. Mitar 2021-12-22 16:10:11 +01:00
  • 7533b11d06 Differentiate between omitted and empty default. Alec Thomas 2021-12-13 19:03:23 +11:00
  • 9c9b8ab50b More enum fixes. Alec Thomas 2021-12-13 18:54:06 +11:00
  • fa08e7027c fix: overly enthusiastic validation of tags Alec Thomas 2021-12-09 19:10:11 +11:00
  • ece1f6d8cb Allow more flexible callback return error type. Mitar 2021-12-13 00:02:56 +01:00
  • deebf0b09b Do not add environment variable to help it is already present. Mitar 2021-12-03 00:19:54 +01:00
  • 32b2f740c9 Support $$ for escaping $ in interpolated values. Alec Thomas 2021-12-04 21:06:09 +11:00
  • c5e464a367 Deprecate HelpFormatter. Alec Thomas 2021-12-03 11:47:34 +11:00
  • c3703cda7e Fix that default should not override the placeholder. Mitar 2021-12-02 12:35:12 +01:00
  • d564bd286f Add test for #244. Alec Thomas 2021-12-02 12:59:34 +11:00
  • 342263cb51 Fix docs re. Help() interface. Alec Thomas 2021-11-30 21:39:35 +11:00
  • ff839dc6db Fix env var interpolation (#236) Colin 2021-11-23 21:57:08 -05:00
  • f00d33b57c Use reflect-compatible struct tags in examples Nate Parsons 2021-11-22 19:13:08 -08:00
  • 79f896f0c0 feat: add support for variable interpolation into env tag key (#234) Colin 2021-11-18 16:56:39 -05:00
  • 5090305bcb Add help testcase for envprefix + no env. Connor Hindley 2021-11-17 11:44:13 -07:00
  • ea18c73f11 Only prepend EnvPrefix if .Env is not empty. Connor Hindley 2021-11-17 11:01:40 -07:00
  • 2770a34ce6 Add envprefix tag Dan 2021-10-22 11:28:58 +07:00
  • 749d3f0752 Allow root application to have a Run(...) error method. Grant Monroe 2021-10-14 16:22:59 -07:00
  • 5c7b038540 Rename IgnoreFieldsRegex -> IgnoreFields. Alec Thomas 2021-09-27 16:31:54 +10:00
  • 1d48b6f720 Allow Mappers to contribute Vars to interpolation. Alec Thomas 2021-09-27 16:07:48 +10:00
  • dd18549686 Update Help.go to make Sub Commands can be Hidden (#207) Dilip Somavarapu 2021-09-16 15:21:21 -07:00
  • bf5e5e843d [#88] Use reflect-compatible struct tags in examples (#202) Radon Rosborough 2021-09-14 23:41:30 -07:00
  • 74cb5130e3 Adds Context.BindToProvider (#201) Stan Rozenraukh 2021-08-30 16:47:02 -04:00
  • d0c0180cec Hydrate pointers to embedded structs. Alec Thomas 2021-08-28 16:54:20 +10:00
  • 07faa2e0d0 Add ability to ignore fields that match given regex pattern(s) (#199) Daniel Selans 2021-08-27 22:41:08 -07:00
  • dd904ce961 Upgrade golangci-lint. Alec Thomas 2021-08-27 20:58:22 +10:00
  • 43616c6a6d Hydrate sub-commands that are pointers. Alec Thomas 2021-08-27 20:54:38 +10:00
  • b5bcf3579b Support duration as nanosecond number when using a resolver Yunchi Luo 2021-08-26 11:52:27 -04:00
  • 5a9c9c7864 Bubble errors instead of panicking (#194) Simon Frei 2021-08-19 10:00:53 +02:00
  • f547618963 Add aliases to ALL help output (#191) Nikita Semikov 2021-08-07 15:04:51 +03:00
  • 676890f22f Switch to GHA. Alec Thomas 2021-08-01 14:45:09 +10:00
  • d1a818b5a1 Allow DynamicCommand to specify arbitrary tags. Alec Thomas 2021-07-13 13:53:01 +10:00
  • 89315e74ad Allow default commands with cmds/args/flags (#188) Cam Hutchison 2021-07-12 14:19:37 +10:00
  • cfbe844aa4 Fix xor + required combo. Alec Thomas 2021-07-11 21:23:18 +10:00
  • 8b2821cc24 Added sub objects support in JSON resolver (#178) Evgeny 2021-06-21 18:08:43 +07:00
  • 247574041d Enum fields must be required or have a default. Alec Thomas 2021-06-21 20:32:40 +09:30