Function tryRunCollect
Similar to tryRun(), but (like std.process.executeShell
) captures
and returns the output instead of displaying it.
auto std .typecons .Tuple!(int,"status",string,"output") tryRunCollect
(
string command
);
auto std .typecons .Tuple!(int,"status",string,"output") tryRunCollect
(
Path workingDirectory,
string command
);
Returns the same tuple as std.process.executeShell
:
std
Returns
The status
field will be -1 upon failure to
start the process.