Go to repository
Internal

Function runScript

Run a CLI command as a child process.

Parameters

  • command: string

    The command to run.

  • args: string[] = []

    The arguments for the command to run.

  • Optional
    callback: ((code: null | number, child: ChildProcess, signal: null | Signals) => void)

    A function to call once the command has executed.

      • (code, child, signal): void
      • Parameters

        • code: null | number
        • child: ChildProcess
        • signal: null | Signals

        Returns void

  • options: SpawnOptionsWithStdioTuple<"inherit", "inherit", "inherit"> = ...

    The options for the shell.

Returns void