Files
nupst/ts/index.ts
T

21 lines
465 B
JavaScript

#!/usr/bin/env node
import { NupstCli } from './cli.ts';
import { logger } from './logger.ts';
import process from 'node:process';
/**
* Main entry point for NUPST
* Initializes the CLI and executes the given command
*/
async function main() {
const cli = new NupstCli();
await cli.parseAndExecute(process.argv.slice(2));
}
// Run the main function and handle any errors
main().catch((error) => {
logger.error(`Error: ${error}`);
process.exit(1);
});