@elsikora/git-branch-lint
Version:
Lint your git branch names
23 lines (22 loc) • 744 B
TypeScript
import type { TBranchList } from "../../../domain/type/branch.type";
import type { IBranchChoiceFormatted } from "../type/branch-choice-formatted.type";
/**
* Formatter for branch choices in CLI prompts
*/
export declare class BranchChoiceFormatter {
private readonly EMPTY_SPACING_OFFSET;
/**
* Format branch list for CLI selection
* @param branchList The list of branches to format
* @returns Formatted choices for inquirer prompt
*/
format(branchList: TBranchList): Array<IBranchChoiceFormatted>;
/**
* Format detailed branch list (object with descriptions)
*/
private formatDetailedList;
/**
* Format simple branch list (array of strings)
*/
private formatSimpleList;
}