public commit

This commit is contained in:
dswbx
2024-11-16 12:01:47 +01:00
commit 90f80c4280
582 changed files with 49291 additions and 0 deletions

22
app/src/cli/index.ts Normal file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env node
import { Command } from "commander";
import * as commands from "./commands";
import { getVersion } from "./utils/sys";
const program = new Command();
export async function main() {
program
.name("bknd")
.description("bknd cli")
.version(await getVersion());
// register commands
for (const command of Object.values(commands)) {
command(program);
}
program.parse();
}
main().then(null).catch(console.error);