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.
16 lines (15 loc) • 485 B
JavaScript
import { cleanCommand } from './clean.js';
import { staleCommand } from './stale.js';
import { listCommand } from './list.js';
import { focusCommand } from './focus.js';
/**
* This function registers all available commands with yargs.
* Each command must export a properly shaped command object.
*/
export function registerCommands(yargsInstance) {
return yargsInstance
.command(cleanCommand)
.command(staleCommand)
.command(listCommand)
.command(focusCommand);
}