MCPcopy Index your code
hub / github.com/callstack/agent-device / runCliWithDaemonStartupFailure

Function runCliWithDaemonStartupFailure

src/__tests__/cli-close.test.ts:6–13  ·  view source on GitHub ↗
(argv: string[])

Source from the content-addressed store, hash-verified

4import { runCliCapture, type CapturedCliRun } from './cli-capture.ts';
5
6function runCliWithDaemonStartupFailure(argv: string[]): Promise<CapturedCliRun> {
7 return runCliCapture(argv, async () => {
8 throw new AppError('COMMAND_FAILED', 'Failed to start daemon', {
9 infoPath: '/tmp/daemon.json',
10 hint: 'stale daemon info',
11 });
12 });
13}
14
15async function runCliCaptureWithErrorDetails(
16 argv: string[],

Callers 1

cli-close.test.tsFile · 0.85

Calls 1

runCliCaptureFunction · 0.90

Tested by

no test coverage detected