14 Commits
Author SHA1 Message Date
Jonathan Bernard bbef072f8b Added AnsiEscapeCodeSequence: better support for ANSI Escape codes. 2016-02-10 02:21:54 -06:00
Jonathan Bernard 51a0cdbc08 LightOptionParser: updated tests to match new behavior. 2015-12-31 23:18:57 -06:00
Jonathan Bernard 7fb35060c2 LightOptionParser: multiple options with arguments.
Previously if there was an option which took multiple arguments, the parser
always returned a flat array of all values given for that option, regardless of
how many arguments it expected. E.g. the following:

    cmd --file-pair f1 f2 --file-pair a b

resulted in the following:

    file-pair: [ f1, f2, a, b ]

For the case where the option is defined as taking only one argument, this
behavior is unchanged, but for the cases where the option is defined as taking
more than one option, an array of arrays is returned instead. For the above
example the result is now:

    file-pair: [ [f1, f2], [a, b] ]

The behavior is the same for options with variable arguments. The following:

    cmd --set f1 f2 --set a b c --set last

results in:

    file-pair: [ [f1, f2], [a, b, c], [last] ]
2015-12-11 23:08:53 -06:00
Jonathan Bernard 5ce1cfab88 Merged in v3.11 2015-11-14 00:25:30 -06:00
Jonathan Bernard f85050f0f2 Changed ConsoleProgressBar to use longs internally. 2015-08-06 20:32:41 -05:00
Jonathan Bernard 1d3f8d71e2 ConsoleProgressBar: Prevent max from being non-positive. 2015-06-28 08:49:42 -05:00
Jonathan Bernard 14903c866c ConsoleProgressBar: Tries to be intelligent about start time even if the caller skips the first update. 2015-06-28 07:35:26 -05:00
Jonathan Bernard 4b4998026f ConsoleProgressBar: auto-trim text info to fit expected length. 2015-06-28 06:52:18 -05:00
Jonathan Bernard db7c61a140 Migrated build system to gradle. 2015-02-04 23:26:58 -06:00
Jonathan Bernard 08fcb781de Documentation for LightOptionParser. 2014-11-22 20:32:53 -06:00
Jonathan Bernard 14332b878c Added a LightOptionParser.parseOptions overload that accepts String[]. 2014-10-29 19:33:04 -05:00
Jonathan Bernard 4ab4e5876b Rewrite LightOptionParser to support multiple parameter arguments.
* LightOptionParser will only make one pass through the arguments array.
* Make LOP support multiple instances of an option (-i in1 -i in2)
* Make LOP support indeterminate option argument lengths
  (using arguments: "variable" in the definition).
* Add unit tests for LightOptionParser and a testing phase during the `package`
  build target.
2014-10-28 01:58:51 -05:00
Jonathan Bernard 8ab35b27bd HttpContext response return integer status values, not strings. 2014-09-25 02:33:26 -05:00
Jonathan Bernard 0494b53108 Enhancements to HTTPContext
* Default port is no 80.
* Support for HTTP Basic Authentication.
* Support for HTTPS.
* Support for Content-Type. Defaults to "applicaion/json" but also supports
  passing a map to be encoded as "application/x-www-form-urlencoded".
2014-09-21 07:05:52 -05:00