mirror of
https://github.com/domfelipe/pokebuddy.git
synced 2026-08-07 08:16:48 +00:00
10 lines
268 B
JavaScript
Executable file
10 lines
268 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
import { run } from '../src/cli.js';
|
|
|
|
run(process.argv.slice(2)).catch((error) => {
|
|
console.error(`\nPokeBuddy crashed: ${error.message}\n`);
|
|
if (process.env.POKEBUDDY_DEBUG === '1') {
|
|
console.error(error.stack);
|
|
}
|
|
process.exit(1);
|
|
});
|