Commit Graph

  • e9d88d6528 Implement flag "resolvers". (#24) Alec Thomas 2018-06-12 07:20:55 +10:00
  • 73064a687f Add <command> to help when a sub-command is required. Alec Thomas 2018-06-08 15:04:26 +10:00
  • d30421d2b1 Get rid of troublesome [<flags>]. Alec Thomas 2018-06-08 15:02:14 +10:00
  • dd03e4c48a Ensure help Flag has Tag. Alec Thomas 2018-06-08 14:54:10 +10:00
  • 71b2dec48b Always match commands before arguments. Alec Thomas 2018-06-08 14:27:08 +10:00
  • 01fa22ca03 Generalise post-build options. Alec Thomas 2018-06-08 13:44:55 +10:00
  • c535900861 Don't apply Options twice. This is less confusing. Alec Thomas 2018-06-08 13:41:23 +10:00
  • 149a83692d Bug fix. Alec Thomas 2018-06-07 22:35:09 +10:00
  • 57152253cc Bug. Alec Thomas 2018-06-07 20:56:51 +10:00
  • 9cc1872297 Fix short flags. Alec Thomas 2018-06-06 19:07:01 +10:00
  • 9498118314 Prefix "error: " to error messages. Alec Thomas 2018-06-06 18:34:05 +10:00
  • d559a6a785 Fix display of default value in placeholder. Alec Thomas 2018-06-06 18:13:36 +10:00
  • 891f8623c1 Make kong.Parse() global more useful. Alec Thomas 2018-06-05 21:31:14 +10:00
  • 96fa9c43d5 Improved documentation and help. Alec Thomas 2018-06-05 10:32:23 +10:00
  • 2afd4ba47b Help! Alec Thomas 2018-06-04 13:25:12 +10:00
  • 48af58cefa Decoders are now field mappers. Alec Thomas 2018-06-03 16:07:30 +10:00
  • c8b487e49c Removed double parsing of options. Gerald Kaszuba 2018-06-03 17:22:32 +10:00
  • ca0490fe2a Add some helper functions to the models. Alec Thomas 2018-06-03 07:41:37 +10:00
  • 1426db8aa0 Added tag test for multiple separators. Gerald Kaszuba 2018-06-01 12:04:35 +10:00
  • 254fa00e81 Better name for parseCSV -> parseTagItems Gerald Kaszuba 2018-06-01 11:33:33 +10:00
  • ed123d1c06 Allow "bare" tags and moved tag tests into tag_test.go. Fixes #19 Gerald Kaszuba 2018-06-01 11:24:18 +10:00
  • fdc7230e22 Separate validation into a distinct step. Alec Thomas 2018-05-29 16:42:53 +10:00
  • afbb431641 Convert Hook to an Option. Alec Thomas 2018-05-27 13:37:17 -04:00
  • cf89213e1e Add hook support. Alec Thomas 2018-05-26 17:38:35 -04:00
  • f60fe01f08 Move command/flag accumulation into ParseTrace. Alec Thomas 2018-05-26 16:02:09 -04:00
  • d20b44baf4 Remove a bunch of duplicate recover code. Alec Thomas 2018-05-26 15:32:45 -04:00
  • 0bb304449c Add Trace() function. Alec Thomas 2018-05-25 00:05:04 -04:00
  • 93e21885b1 A basic refactor in build, splitting the two main code branches. Gerald Kaszuba 2018-05-24 11:53:32 +10:00
  • 5df3b26bab Use new Tag type for slice separator. Alec Thomas 2018-05-23 12:20:47 -04:00
  • 886edb6f5a Extend Tag for non-core decoders (Fixes #14) Gerald Kaszuba 2018-05-23 10:22:57 +10:00
  • 6c80dd3f31 README fix for the kong tag change Gerald Kaszuba 2018-05-23 07:28:19 +10:00
  • ecd369e622 Kong tag PR fixes (#12) Gerald Kaszuba 2018-05-22 23:18:08 +10:00
  • 31e1ffaa3b Test for options. Alec Thomas 2018-05-22 00:49:09 -04:00
  • ab5cf7e6ef Tracing parser (#11) Alec Thomas 2018-05-22 00:07:43 -04:00
  • 3eb5e285ed Use "kong" as tag keys fixes #9 (#10) Gerald Kaszuba 2018-05-21 23:25:19 +10:00
  • 184735e689 Document how decoders work. Alec Thomas 2018-05-20 00:42:54 +10:00
  • 6a5fba0967 Move ParseContext into its own file. Alec Thomas 2018-05-19 22:39:01 +10:00
  • d7bb20f297 Factor out duplicate value reset code. Alec Thomas 2018-05-19 22:15:14 +10:00
  • d1acfab2e6 Factor parsing out into a ParseContext type. Alec Thomas 2018-05-19 21:44:07 +10:00
  • c27dd50be6 Move .Set = true into Decode(). Alec Thomas 2018-05-19 21:02:49 +10:00
  • 8e96da517d Fixes #3 Required and optional flags+args (#6) Gerald Kaszuba 2018-05-19 20:54:26 +10:00
  • aea859372c Switch to circleci. Alec Thomas 2018-05-19 20:04:51 +10:00
  • a9179cd8ec Allow parent flags to be processed #4 Gerald Kaszuba 2018-05-19 13:58:35 +10:00
  • 3b21a54094 More validation. Alec Thomas 2018-05-18 21:30:44 +10:00
  • d03571a873 Use variadic options to configure Kong. Alec Thomas 2018-05-18 21:17:48 +10:00
  • b4b5827044 Matching arg field (#1) Gerald Kaszuba 2018-05-18 18:38:53 +10:00
  • 67b1a12059 Require cmd:"" or arg:"" for branching commands/args. Alec Thomas 2018-05-18 15:39:40 +10:00
  • a41bb0e4da Remove gotestyourself. Alec Thomas 2018-05-18 14:41:10 +10:00
  • c6776fe4b8 Docs. Alec Thomas 2018-05-18 13:38:07 +10:00
  • f929749094 Add Decode() method to Value to DRY. Alec Thomas 2018-05-17 23:50:12 +10:00
  • 31fe51f9d8 Support cumulative positional arguments. Alec Thomas 2018-05-17 20:16:12 +10:00
  • b9d002b746 Slice support. Alec Thomas 2018-05-17 19:39:48 +10:00
  • cb88963909 Clean up decoders a bit. Alec Thomas 2018-05-17 11:21:20 +10:00
  • 8f26b13088 Slice support. Alec Thomas 2018-05-17 10:40:46 +10:00
  • 1d00dfef7b Implemented most of the base parser. Alec Thomas 2018-05-16 20:33:18 +10:00
  • 8516c68cc9 Add decoders scaffolding. Alec Thomas 2018-04-10 21:17:00 +10:00
  • aa1bf9dcb5 Initial commit. Alec Thomas 2018-04-10 16:51:06 +10:00