MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / guestOs

Function guestOs

e2e/cli/election-cold-start.test.ts:31–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29type GuestOs = "macos" | "linux" | "windows";
30
31const guestOs = (): GuestOs => {
32 const os = process.env.E2E_VM_OS;
33 if (os === "macos" || os === "linux" || os === "windows") return os;
34 throw new Error(`Unsupported E2E_VM_OS: ${os ?? "<unset>"}`);
35};
36
37const sshInvocation = (command: string): { command: string; args: ReadonlyArray<string> } => {
38 const host = process.env.E2E_CLI_VM_HOST;

Callers 3

sshInvocationFunction · 0.70
exePathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected