interface ICliExecutionProcess {
    data: any;
    exit: (code?: number, options?: { silent?: boolean }) => void;
    exitCode?: number;
    exited?: boolean;
    running: boolean;
    output(data: any): void;
}

Properties

data: any

The data of the process

exit: (code?: number, options?: { silent?: boolean }) => void

Exit the process

Type declaration

    • (code?: number, options?: { silent?: boolean }): void
    • Parameters

      • Optionalcode: number

        The exit code

      • Optionaloptions: { silent?: boolean }

        Options for exiting the process

        • Optionalsilent?: boolean

          Indicates if the exit should be silent, i.e. not throw an error

      Returns void

      void

exitCode?: number

The exit code of the process

exited?: boolean

Indicates if the process has exited

running: boolean

Indicates if the process is running

Methods