processResultToDebugString function
Process result debug string
Implementation
String processResultToDebugString(ProcessResult result) {
final sb = StringBuffer();
sb.writeln('exitCode: ${result.exitCode}');
if (_isNotEmpty(result.stdout)) {
sb.writeln('out: ${result.stdout}');
}
if (_isNotEmpty(result.stderr)) {
sb.writeln('err: ${result.stderr}');
}
return sb.toString();
}