@flowscripter/dynamic-cli-framework
    Preparing search index...

    Interface SpawnService

    Service allowing a Command to spawn a child process, with output optionally captured and shutdown signals gracefully forwarded.

    interface SpawnService {
        spawn(
            command: readonly string[],
            options?: SpawnOptions,
        ): Promise<SpawnResult>;
    }

    Implemented by

    Index
    • Spawn a process.

      Parameters

      • command: readonly string[]

        the command and its arguments, e.g. ["bun", "add", "some-package"].

      • Optionaloptions: SpawnOptions

        optional SpawnOptions.

      Returns Promise<SpawnResult>

      the SpawnResult. Never rejects.