cli_script 0.2.3
cli_script: ^0.2.3 copied to clipboard
Write scripts that call subprocesses with the ease of shell scripting and the power of Dart.
0.2.3 #
-
Add an
onlyMatchingflag togrep()which prints the sections of input lines that match the given regular expression. -
Add a
teeToStderrtransformer and extension method onStream<List<String>>. This passes a stream to stderr without modifying it, which is useful for debugging. -
Add a
Script.mapLinesconstructor that returns a script that maps stdin lines according to aString Function(String). -
Add support for passing a
String Function(String)toScript.pipelineandScript.operator |to map stdin lines. -
Fold stack frames for a few more packages used internally.
0.2.2 #
-
Add a
BufferedScriptclass that buffers output from a Script until it's explicitly released, making it easier to run multiple script in parallel without having their outputs collide with one another. -
If the same
capture()block both callsprint()and writes tocurrentStdout, ensure that the order of prints is preserved. -
If the same
capture()block writes to bothcurrentStdoutandcurrentStderr, ensure that the relative order of those writes is preserved when collected withcombineOutput().
0.2.1 #
- Give the stream transformers exposed by this package human-readable
toString()s.
0.2.0 #
-
Add a
debugoption towrapMain()to print extra diagnostic information. -
Add a
runInShellargument for subprocesses. -
Accept
Iterable<String>instead ofList<String>for subprocess arguments. -
Use 257 rather than 256 as the sentinel value for
ScriptExceptions caused by Dart exceptions. -
Fix a bug where Dart exceptions could cause the script to exit before their debug information was printed to stderr.
0.1.0 #
- Initial release.