Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 09:04:14 +08:00
commit 70c36b5eff
248 changed files with 47482 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env node
import { Command } from 'commander';
const program = new Command();
program
.name('mycli')
.description('A simple CLI tool')
.version('1.0.0');
program
.command('hello')
.description('Say hello')
.option('-n, --name <name>', 'name to greet', 'World')
.action((options) => {
console.log(`Hello, ${options.name}!`);
});
program.parse();