import { type Deno } from "https://deno.land/x/deno@v1.28.3/cli/tsc/dts/lib.deno.unstable.d.ts";
const { CommandOptions } = Deno;
UNSTABLE: New API, yet to be vetted.
Options which can be set when calling Deno.command
.
Properties
The working directory of the process.
If not specified, the cwd
of the parent process is used.
Clear environmental variables from parent process.
Doesn't guarantee that only env
variables are present, as the OS may
set environmental variables for processes.
Sets the child process’s user ID. This translates to a setuid call in the child process. Failure in the set uid call will cause the spawn to fail.
An AbortSignal
that allows closing the process using the
corresponding AbortController
by sending the process a
SIGTERM signal.
Ignored by Command.outputSync
.
How stdin
of the spawned process should be handled.
Defaults to "null"
.
How stdout
of the spawned process should be handled.
Defaults to "piped"
.
How stderr
of the spawned process should be handled.
Defaults to "piped".