Interface ProcessOptions
interface ProcessOptions {
args?: string[];
code?: number;
command?: string;
cwd?: string;
entry?: (params: ProcessEntryParams) => Promise<undefined | number | void>;
gid: number;
kernel?: Kernel;
parent?: number;
shell?: Shell;
status?: ProcessStatus;
stderr?: WritableStream<Uint8Array>;
stdin?: ReadableStream<Uint8Array>;
stdout?: WritableStream<Uint8Array>;
terminal?: Terminal;
uid: number;
}
args?: string[];
code?: number;
command?: string;
cwd?: string;
entry?: (params: ProcessEntryParams) => Promise<undefined | number | void>;
gid: number;
kernel?: Kernel;
parent?: number;
shell?: Shell;
status?: ProcessStatus;
stderr?: WritableStream<Uint8Array>;
stdin?: ReadableStream<Uint8Array>;
stdout?: WritableStream<Uint8Array>;
terminal?: Terminal;
uid: number;
}
Properties
Optional
args
args?: string[]
Command line arguments
Optional
code
code?: number
Exit code
Optional
command
command?: string
Command name
Optional
cwd
cwd?: string
Working directory
Optional
entry
Process entry point
gid
gid: number
Group ID
Optional
kernel
Reference to kernel instance
Optional
parent
parent?: number
Parent process ID
Optional
shell
Reference to shell instance
Optional
status
Process status
Optional
stderr
Standard error stream
Optional
stdin
Standard input stream
Optional
stdout
Standard output stream
Optional
terminal
Reference to terminal instance
uid
uid: number
User ID
Options for configuring processes