This commit is contained in:
daydreamer-json
2026-01-22 18:48:17 +09:00
commit b9c2d4253a
39 changed files with 3346 additions and 0 deletions

18
src/main.ts Normal file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env node
import childProcess from 'node:child_process';
import util from 'node:util';
import parseCommand from './cmd.js';
import exitUtils from './utils/exit.js';
async function main(): Promise<void> {
try {
process.platform === 'win32' ? await util.promisify(childProcess.exec)('chcp 65001') : undefined;
await parseCommand();
} catch (error) {
console.log(error);
exitUtils.pressAnyKeyToExit(1);
}
}
await main();