(app: AppCommand)
| 4 | import { printAddHelp } from './print-add-help'; |
| 5 | |
| 6 | export 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 | } |
no test coverage detected
searching dependent graphs…