MCPcopy
hub / github.com/QwikDev/qwik / runAddCommand

Function runAddCommand

packages/qwik/src/cli/add/run-add-command.ts:6–18  ·  view source on GitHub ↗
(app: AppCommand)

Source from the content-addressed store, hash-verified

4import { printAddHelp } from './print-add-help';
5
6export async function runAddCommand(app: AppCommand) {
7 try {
8 const id = app.args[1];
9 if (id === 'help') {
10 await printAddHelp(app);
11 } else {
12 await runAddInteractive(app, id);
13 }
14 } catch (e) {
15 console.error(`❌ ${red(String(e))}\n`);
16 process.exit(1);
17 }
18}

Callers 2

run.tsFile · 0.90
runCommandFunction · 0.90

Calls 2

printAddHelpFunction · 0.90
runAddInteractiveFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…