Function tryRunCollect

Similar to tryRun(), but (like std.process.executeShell) captures

and returns the output instead of displaying it.

Returns the same tuple as std.process.executeShell:

std.typecons.Tuple!(int, "status", string, "output")

Prototypes

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 status field will be -1 upon failure to

start the process.

Authors

Nick Sabalausky

Copyright

Copyright (C) 2014-2017 Nick Sabalausky

License

zlib/libpng