@edgible-team/sdk
    Preparing search index...

    Interface VmExecHost

    The slice of VirtualMachine the SSH executor needs (fakeable in tests).

    interface VmExecHost {
        exec(
            command: string,
            options?: { timeout?: number },
        ): Promise<ExecResult>;
    }
    Index

    Methods

    Methods

    • Run a raw shell command in the guest over SSH. Never rejects; check exitCode.

      Parameters

      • command: string
      • Optionaloptions: { timeout?: number }

      Returns Promise<ExecResult>