rehearsal
v0.1.1
Published
Persist standard input to a file, then simulate real-time program execution.
Downloads
4
Readme
Rehearsal
Persist standard input to a file, then simulate real-time program execution.
Ever needed to give a talk on a program and show exactly how the output is going to look like, and such?
To install rehearsal
, use npm
.
npm i -g rehearsal
To record the output of a program, pipe it through rehearsal
, and then persist that to a file.
grunt ec2_list --color | rehearsal > scenario
Note that your command is getting executed here, we're just redirecting its output, so make sure that that doesn't blow up your repository, or production servers, or anything.
In this case, I had to use the --color
argument because chalk
won't produce any color coding, otherwise.
At any time, the scenario can be reproduced using the reheasal <scenario>
command, as shown in the screenshot below.
Read some more on Pony Foo