Skip to main content

Interface: StricliProcess

Simple interface that mirrors NodeJS.Process but only requires the minimum API required by Stricli.

Extends

  • WritableStreams

Properties

env?

readonly optional env: Readonly<Partial<Record<string, string>>>

Object that stores all available environment variables.

See

EnvironmentVariableName for variable names used by Stricli.

Defined in

packages/core/src/context.ts:47


exit()?

readonly optional exit: (code) => void

Set the exit code and end the current process.

Parameters

code: number

Returns

void

Defined in

packages/core/src/context.ts:51


stderr

readonly stderr: Writable

Contains a writable stream connected to stderr (fd 2).

Inherited from

WritableStreams.stderr

Defined in

packages/core/src/context.ts:27


stdout

readonly stdout: Writable

Contains a writable stream connected to stdout (fd 1).

Inherited from

WritableStreams.stdout

Defined in

packages/core/src/context.ts:23