Files
nupst/ts/index.ts
Juergen Kunz 071ded9c41
All checks were successful
CI / Build All Platforms (Tag/Main only) (push) Has been skipped
CI / Type Check & Lint (push) Successful in 6s
CI / Build Test (Current Platform) (push) Successful in 6s
style: configure deno fmt to use single quotes
- Add singleQuote: true to deno.json fmt configuration
- Reformat all files with single quotes using deno fmt
2025-10-19 13:14:18 +00:00

21 lines
456 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);
}
// Run the main function and handle any errors
main().catch((error) => {
logger.error(`Error: ${error}`);
process.exit(1);
});