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

Function writeExecutorShim

e2e/local/cli-call-logged-out.test.ts:82–86  ·  view source on GitHub ↗
(binDir: string)

Source from the content-addressed store, hash-verified

80/** An `executor` on PATH that runs this checkout's CLI, so the recording
81 * shows the command a user actually types. */
82const writeExecutorShim = (binDir: string) => {
83 const shim = join(binDir, "executor");
84 writeFileSync(shim, `#!/bin/sh\nexec bun run "${join(repoRoot, "apps/cli/src/main.ts")}" "$@"\n`);
85 chmodSync(shim, 0o755);
86};
87
88scenario(
89 "CLI call · a signed-out hosted profile explains how to log back in",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected