vibe.d beta banner
get vibe.d
0.8.6

Asynchronous I/O that doesn’t get in your way, written in D

Function execute

Equivalent to std.process.execute.

std.typecons.Tuple!(int,"status",string,"output") execute (
  scope string[] args,
  const(string[string]) env = cast(const(string[string]))null,
  Config config = cast(Config)cast(ProcessConfig)0,
  ulong maxOutput = 18446744073709551615LU,
  scope GenericPath!(vibe.core.path.PosixPathFormat) workDir = GenericPath(null)
) @safe;

std.typecons.Tuple!(int,"status",string,"output") execute (
  scope string program,
  const(string[string]) env = cast(const(string[string]))null,
  Config config = cast(Config)cast(ProcessConfig)0,
  ulong maxOutput = 18446744073709551615LU,
  scope GenericPath!(vibe.core.path.PosixPathFormat) workDir = GenericPath(null)
) @trusted;

Returns

Tuple containing the exit status and process output.

See Also

spawnProcess, pipeProcess

Authors
Copyright
License