@aaronshaf/ger
Version:
Gerrit CLI
23 lines (17 loc) • 570 B
text/typescript
import { Command } from '@commander-js/extra-typings';
import { branch } from "./commands/branch";
const version = require("../package.json").version;
const program = new Command();
program.name("ger").description("Gerrit CLI").version(version);
program
.command("branch")
.description("Get a list of local branches with Gerrit info")
.option("-v", "Show extra information, i.e. approvals")
.option("-d", "Prompt to delete already-merged branches")
.action((
_program: any,
) => {
branch(_program);
});
program.parse();