mirror of
https://github.com/daydreamer-json/ak-endfield-api-archive.git
synced 2026-02-04 14:25:08 +01:00
Hello
This commit is contained in:
18
src/main.ts
Normal file
18
src/main.ts
Normal 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();
|
||||
Reference in New Issue
Block a user