- 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
20 lines
418 B
JavaScript
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);
|
|
});
|