processCmdToDebugString function
Process command debug string
Implementation
String processCmdToDebugString(ProcessCmd cmd) {
final sb = StringBuffer();
if (cmd.workingDirectory != null) {
sb.writeln('dir: ${cmd.workingDirectory}');
}
sb.writeln('cmd: $cmd');
return sb.toString();
}