@karmaniverous/get-dotenv
    Preparing search index...

    Function runCommand

    Execute a command and return its exit code.

    Command string (shell) or argv array (shell-off supported).

    Shell setting (false for plain execution).

    Execution options (cwd/env/stdio).

    A promise resolving to the process exit code.

    • Execute a command and return its exit code.

      Parameters

      • command: readonly string[]

        Command string (shell) or argv array (shell-off supported).

      • shell: false

        Shell setting (false for plain execution).

      • opts: RunCommandOptions

        Execution options (cwd/env/stdio).

      Returns Promise<number>

      A promise resolving to the process exit code.

    • Execute a command and return its exit code.

      Parameters

      • command: string | readonly string[]

        Command string (shell) or argv array (shell-off supported).

      • shell: string | boolean | URL

        Shell setting (false for plain execution).

      • opts: RunCommandOptions

        Execution options (cwd/env/stdio).

      Returns Promise<number>

      A promise resolving to the process exit code.