ch.vorburger.exec icon indicating copy to clipboard operation
ch.vorburger.exec copied to clipboard

startWaitGetOutput()

Open vorburger opened this issue 4 years ago • 0 comments

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:

vorburger avatar Nov 15 '20 19:11 vorburger