feat(cli): Add initial MOXYTOOL implementation, packaging, install/uninstall scripts, CI and release workflows

This commit is contained in:
2025-10-27 11:27:44 +00:00
commit 71e283bcd5
23 changed files with 1932 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env node
/**
* MOXYTOOL - Proxmox Administration Tool
* Node.js entry point for library usage
*/
import * as cli from './moxytool.cli.ts';
import { logger } from './moxytool.logging.ts';
import process from 'node:process';
/**
* Main entry point for MOXYTOOL
* Initializes the CLI and executes the given command
*/
async function main() {
await cli.runCli();
}
// Run the main function and handle any errors
main().catch((error) => {
logger.error(`Error: ${error}`);
process.exit(1);
});
// Export for library usage
export { logger };
export * from './moxytool.cli.ts';