(ret)
| 1 | // This function takes the raw result of a shelljs command and figures out how to print it. |
| 2 | // Invoke this *REGARDLESS* of what the command returns, it will figure it out. |
| 3 | export const printCmdRet = (ret) => { |
| 4 | // Don't print these types |
| 5 | if (typeof ret === 'boolean' || !ret) return; |
| 6 | |
| 7 | if (typeof ret.stdout === 'string') { |
| 8 | process.stdout.write(ret.stdout); |
| 9 | } else { |
| 10 | process.stdout.write(ret); |
| 11 | } |
| 12 | }; |
no outgoing calls
no test coverage detected
searching dependent graphs…