Files
nupst/ts/index.ts
Juergen Kunz a649c598ad Phase 1-2: Migrate to Deno with npm: and node: specifiers
- Created deno.json configuration
- Updated all imports to use npm:net-snmp@3.20.0
- Changed all Node.js built-in imports to node: specifiers
- Updated all .js extensions to .ts in imports
- Created mod.ts as Deno entry point
- Ready for Phase 3: CLI simplification
2025-10-18 11:59:55 +00:00

20 lines
418 B
JavaScript

#!/usr/bin/env node
import { NupstCli } from './cli.ts';
import { logger } from './logger.ts';
/**
* 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);
});