MCPcopy Index your code
hub / github.com/CommandCodeAI/BaseAI / exitSetupFailed

Function exitSetupFailed

packages/baseai/src/init/index.ts:14–25  ·  view source on GitHub ↗
({
	errorMessage,
	warningMessage
}: {
	errorMessage: string;
	warningMessage: string;
})

Source from the content-addressed store, hash-verified

12type PackageManager = 'yarn' | 'pnpm' | 'bun' | 'npm';
13
14function exitSetupFailed({
15 errorMessage,
16 warningMessage
17}: {
18 errorMessage: string;
19 warningMessage: string;
20}): never {
21 p.log.error(`Setup failed: ${errorMessage}`);
22 p.log.warn(warningMessage);
23 p.cancel('Setup aborted.');
24 process.exit(1);
25}
26
27async function displayIntro({
28 calledAsCommand

Callers 6

ensurePackageJsonFunction · 0.85
installBaseAIFunction · 0.85
createBaseAIDirectoriesFunction · 0.85
createConfigFileFunction · 0.85
updatePackageJsonScriptFunction · 0.85
initFunction · 0.85

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected