UNPKG

@launchql/cli

Version:
21 lines (20 loc) 513 B
#!/usr/bin/env node import { CLI } from 'inquirerer'; import { commands } from './commands'; export const options = { minimistOpts: { alias: { v: 'version', h: 'help' } } }; const app = new CLI(commands, options); app.run().then(() => { // all done! }).catch(error => { // Should not reach here with the new CLI error handling pattern // But keep as fallback for unexpected errors console.error('Unexpected error:', error); process.exit(1); });