1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | // This function takes the raw result of a shelljs command and figures out how to print it.
|
7 | // Invoke this *REGARDLESS* of what the command returns, it will figure it out.
|
8 | var printCmdRet = exports.printCmdRet = function printCmdRet(ret) {
|
9 | // Don't print these types
|
10 | if (typeof ret === 'boolean' || !ret) return;
|
11 |
|
12 | if (typeof ret.stdout === 'string') {
|
13 | process.stdout.write(ret.stdout);
|
14 | } else {
|
15 | process.stdout.write(ret);
|
16 | }
|
17 | }; |
\ | No newline at end of file |