Commit Graph

12 Commits

Author SHA1 Message Date
Brian Picciano
b35b44eb22 mcfg: implement WithCLISubCommand 2019-04-04 16:25:02 -04:00
Brian Picciano
2eb4a37533 mcfg: make Parse and Populate return a Context, to allow for sub-commands 2019-04-04 12:52:43 -04:00
Brian Picciano
c0afa3d126 mcfg: Parse now takes a Context, which allows for implementing WithCLITail 2019-04-04 12:20:40 -04:00
Brian Picciano
8e2cffd65b mcfg: make ParamValue not embed Param, so that a Source which is []ParamValue makes sense, and can replace SourceMap 2019-01-25 17:33:36 -05:00
Brian Picciano
b33b157e15 mcfg: update docs to make running Populate more than once explicitly allowed 2019-01-25 16:46:39 -05:00
Brian Picciano
05a69589bc mcfg: use merr for returned errors, and make help output prioritize required params towards the top 2019-01-24 22:02:04 -05:00
Brian Picciano
6e8338a5f8 mcfg: refactor to remove Child and Hook stuff, and use mctx instead 2019-01-08 14:21:55 -05:00
Brian Picciano
132c51eaf0 mcfg: move Path out of ParamValue and into Param, which allows for shuffling around a whole bunch of code to make things make a bit more sense 2018-08-13 21:02:06 -04:00
Brian Picciano
3de30eb819 mcfg: centralize logic for fuzzy parsing strings, use it to implement SourceMap 2018-08-13 20:44:03 -04:00
Brian Picciano
8ff2abf02c mcfg: implement Sources 2018-08-13 20:15:54 -04:00
Brian Picciano
be17ee942a mcfg: simplify populateParams 2018-08-13 20:05:22 -04:00
Brian Picciano
8084268bbf mcfg: shuffle some code around so there's a common way of retrieving all ParamValues out of a Cfg 2018-08-13 18:44:46 -04:00