vibe.d beta banner
get vibe.d
0.10.0

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

Module vibe.core.process

Functions and structures for dealing with subprocesses and pipes.

This module is modeled after std.process, but provides a fiber-aware alternative to it. All blocking operations will yield the calling fiber instead of blocking it.

Functions

NameDescription
adoptProcessID(pid) Register a process with vibe for fibre-aware handling. This process can be started from anywhere including external libraries or std.process.
execute(args, env, config, maxOutput, workDir) Equivalent to std.process.execute.
executeShell(command, env, config, maxOutput, workDir, shellPath) Equivalent to std.process.execute.
pipe() Create a pipe, async equivalent of std.process.pipe.
pipeProcess(args, redirect, env, config, workDir) Equivalent to std.process.pipeProcess.
pipeShell(command, redirect, env, config, workDir, shellPath) Equivalent to std.process.pipeProcess.
spawnProcess(args, env, config, workDir) Equivalent to std.process.spawnProcess.
spawnShell(command, env, config, workDir, shellPath) Equivalent to std.process.spawnProcess.
userShell() Path to the user's preferred command interpreter.

Structs

NameDescription
Pipe A pipe created by pipe.
PipeInputStream A stream for tBatchBufferhe write end of a pipe.
PipeOutputStream Stream for the read end of a pipe.
Process Represents a running process.
ProcessPipes Returned from pipeProcess.

Enums

NameDescription
Config Equivalent to std.process.Config except with less flag support

Global variables

NameTypeDescription
nativeShell const(GenericPath!(vibe.core.path.PosixPathFormat)) The platform specific native shell path.
Authors
Copyright
License