Scoop API

scoop:scoop.platform:0.1.0

Command

class Command

source · line 39
public
public class Command internal constructor(
    /**
     * The executable path selected for spawning.
     */
    public val executable: Path,
    arguments: Array<OsString> = [],
    environment: Map<OsString, OsString> = currentEnvironment(),
    /**
     * The child's initial working directory.
     */
    public val workingDirectory: Path = currentDirectory(),
    /**
     * The child standard-input routing.
     */
    public val stdin: Stdio = Stdio.Inherit,
    /**
     * The child standard-output routing.
     */
    public val stdout: Stdio = Stdio.Inherit,
    /**
     * The child standard-error routing when not merged.
     */
    public val stderr: Stdio = Stdio.Inherit,
    /**
     * Whether stderr is redirected to the child's selected stdout.
     */
    public val mergeError: Boolean = false
)

A process launch description with copied argument/environment data, an explicit working directory, and standard-stream routing. Arguments are passed directly without shell interpretation. Windows uses CRT argument encoding and leaves ordinary nonempty arguments unquoted. Scripts passed to an explicitly selected interpreter still follow its syntax.

Extensions

property stdin

source · line 53
public
public val stdin: Stdio = Stdio.Inherit

get: public read-only

The child standard-input routing.

property stderr

source · line 61
public
public val stderr: Stdio = Stdio.Inherit

get: public read-only

The child standard-error routing when not merged.

property mergeError

source · line 65
public
public val mergeError: Boolean = false

get: public read-only

Whether stderr is redirected to the child's selected stdout.

property stdout

source · line 57
public
public val stdout: Stdio = Stdio.Inherit

get: public read-only

The child standard-output routing.

property executable

source · line 43
public
public val executable: Path

get: public read-only

The executable path selected for spawning.

property arguments

source · line 70
public
public val arguments: Array<OsString>

get: public read-only

The independent argument snapshot passed to the child.

property workingDirectory

source · line 49
public
public val workingDirectory: Path = currentDirectory()

get: public read-only

The child's initial working directory.