ch.vorburger.exec
ch.vorburger.exec copied to clipboard
startWaitGetOutput()
ManagedProcess ideally should have something like a startWaitGetOutput() which would:
p.start();
if (p.waitForExit() != 0) {
throw fail(p.getProcLongName() + " did not return 0");
}
return p.getConsole();
Ideally it perhaps shouldn't just return the String from getConsole() (which is misnamed..), but an object allowing separate access to the captured STDOUT & STDERR (and combined?). With and without ANSI colour codes, while we're dreaming. :smile: