You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
524 B
17 lines
524 B
'use strict';
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
// This function takes the raw result of a shelljs command and figures out how to print it.
|
|
// Invoke this *REGARDLESS* of what the command returns, it will figure it out.
|
|
var printCmdRet = exports.printCmdRet = function printCmdRet(ret) {
|
|
// Don't print these types
|
|
if (typeof ret === 'boolean' || !ret) return;
|
|
|
|
if (typeof ret.stdout === 'string') {
|
|
process.stdout.write(ret.stdout);
|
|
} else {
|
|
process.stdout.write(ret);
|
|
}
|
|
}; |