import Dev from './commands/dev' import Build from './commands/build' import Init from './commands/init' async function main() { try { const command = process.argv[2] || 'dev' switch (command) { case 'dev': await Dev.run() break case 'build': await Build.run() break case 'init': await Init.run() break default: console.error(`Unsupported command: ${command}`) process.exit(1) } } catch (error) { console.error('Error when running the CLI:', error) process.exit(1) } } main()