kwgit
Version:
A command-line utility to help with cleaning up git branches. This tool provides a safe and efficient way to manage your git branches, helping you keep your repository clean and organized.
17 lines (15 loc) • 466 B
JavaScript
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import { registerCommands } from '../src/commands/index.js';
const cli = yargs(hideBin(process.argv))
.scriptName('kwgit')
.usage('$0 <command> [options]')
.recommendCommands()
.strict()
.demandCommand(1, 'Please specify a valid command.')
.help()
.alias('h', 'help')
.version('3.0.0')
.alias('v', 'version');
registerCommands(cli).parse();