tryRunCollect

Similar to tryRun(), but (like $(FULL_STD_PROCESS executeShell)) captures and returns the output instead of displaying it.

Returns the same tuple as $(FULL_STD_PROCESS executeShell): std.typecons.Tuple!(int, "status", string, "output")

  1. auto tryRunCollect(string command)
  2. auto tryRunCollect(Path workingDirectory, string command)
    tryRunCollect

Return Value

Type: auto

The status field will be -1 upon failure to start the process.

Meta