@elsikora/git-branch-lint
Version:
Lint your git branch names
26 lines (25 loc) • 747 B
TypeScript
import type { TBranchList } from "../../../domain/type/branch.type";
/**
* Prompt service for branch creation interactions
*/
export declare class BranchCreationPrompt {
private readonly BRANCH_CHOICE_FORMATTER;
private readonly VALIDATE_BRANCH_NAME_USE_CASE;
constructor();
/**
* Prompt for branch name
* @returns Branch name
*/
promptBranchName(): Promise<string>;
/**
* Prompt for branch type selection
* @param branches Available branch types
* @returns Selected branch type
*/
promptBranchType(branches: TBranchList): Promise<string>;
/**
* Prompt to push branch to remote
* @returns Whether to push the branch
*/
promptPushBranch(): Promise<boolean>;
}