MCPcopy Create free account
hub / github.com/Noumena-Network/code / buildReplTmuxFixtureCommand

Function buildReplTmuxFixtureCommand

src/testing/replTmuxFixtureHarness.ts:22–38  ·  view source on GitHub ↗
(paths: {
  readyPath: string
  frameLogPath: string
  rawOutputPath: string
  scenarioPath?: string
})

Source from the content-addressed store, hash-verified

20}
21
22export function buildReplTmuxFixtureCommand(paths: {
23 readyPath: string
24 frameLogPath: string
25 rawOutputPath: string
26 scenarioPath?: string
27}): string {
28 return (
29 `bash -lc 'cd ${shellQuote(TEST_CODE_DIR)} && ` +
30 `TMPDIR=${shellQuote(TEST_TMPDIR)} ` +
31 `${shellQuote('/home/xjdr/.bun/bin/bun')} src/testing/replTmuxFixture.tsx ` +
32 `${shellQuote(paths.readyPath)} ` +
33 `${shellQuote(paths.frameLogPath)} ` +
34 `${shellQuote(paths.rawOutputPath)}` +
35 (paths.scenarioPath ? ` ${shellQuote(paths.scenarioPath)}` : '') +
36 `'`
37 )
38}
39
40export function spawnReplTmuxFixture(options?: {
41 readonly prefix?: string

Callers 1

spawnReplTmuxFixtureFunction · 0.85

Calls 1

shellQuoteFunction · 0.70

Tested by

no test coverage detected