Skip to content

Commit ea7aab9

Browse files
committed
improved command capture ex.
1 parent aa4caf0 commit ea7aab9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example/command-capture.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ var ret = cmd("boing", "boing", "boing");
77

88
var echo = new Command("echo");
99

10-
echo("Rabbits go", ret);
10+
echo("Rabbits go", String(ret) + "...");
1111

12+
// So what exactly is in 'ret' ?
13+
echo(JSON.stringify(ret, undefined, '...'));

0 commit comments

Comments
 (0)