Files
zerobyte/app/server/cli/index.ts
Nico 5f01d6f10d feat: reset password cli command (#220)
* feat: reset password cli command

* refactor: wrap user password reset operations in db transaction
2025-12-22 20:51:46 +01:00

22 lines
568 B
TypeScript

import { Command } from "commander";
import { resetPasswordCommand } from "./commands/reset-password";
const program = new Command();
program.name("zerobyte").description("Zerobyte CLI - Backup automation tool built on top of Restic").version("1.0.0");
program.addCommand(resetPasswordCommand);
export async function runCLI(argv: string[]): Promise<boolean> {
const args = argv.slice(2);
const hasCommand = args.length > 0 && !args[0].startsWith("-");
if (!hasCommand) {
return false;
}
await program.parseAsync(argv);
return true;
}
export { program };