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:52


exitCode?​

optional exitCode: null | string | number

A number which will be the process exit code.

Defined in​

packages/core/src/context.ts:56


stderr​

readonly stderr: Writable

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

Inherited from​

WritableStreams.stderr

Defined in​

packages/core/src/context.ts:32


stdout​

readonly stdout: Writable

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

Inherited from​

WritableStreams.stdout

Defined in​

packages/core/src/context.ts:28