README.md in scmd-1.0.0 vs README.md in scmd-1.1.0

- old
+ new

@@ -49,10 +49,31 @@ # the cmd instance is returned by `run` for chaining as well cmd.run.stdout #=> 'hi' ``` -Some helpers: +### Run with input on stdin + +A single input line + +```ruby +input = "echo hi" +cmd = Scmd.new("sh").run(input) +cmd.stdout #=> 'hi' +``` + +Multiple input lines: + +```ruby +input = ["echo hi", "echo err 1>&2"] +cmd = Scmd.new("sh").run(input) +cmd.stdout #=> 'hi' +cmd.stderr #=> 'err' +``` + +### Some helpers + +Ask if cmd was successful: ```ruby puts cmd.stderr if !cmd.success? ```