MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / runAction

Function runAction

apps/kimi-code/src/cli/sub/provider.ts:418–425  ·  view source on GitHub ↗
(resolved: ProviderDeps, run: () => Promise<void>)

Source from the content-addressed store, hash-verified

416 // is invalid) must end as a one-line error + exit 1, not an unhandled
417 // rejection dumping a stack trace.
418 const runAction = async (resolved: ProviderDeps, run: () => Promise<void>): Promise<void> => {
419 try {
420 await run();
421 } catch (error) {
422 resolved.stderr.write(`${errorMessage(error)}\n`);
423 resolved.exit(1);
424 }
425 };
426
427 provider
428 .command('add <url>')

Callers 1

registerProviderCommandFunction · 0.85

Calls 4

errorMessageFunction · 0.70
writeMethod · 0.65
exitMethod · 0.65
runFunction · 0.50

Tested by

no test coverage detected