@elsikora/git-branch-lint
Version:
Lint your git branch names
18 lines (17 loc) • 496 B
TypeScript
import type { IBranchRepository } from "../../domain/interface/branch.repository.interface";
/**
* Use case for getting the current branch name
*/
export declare class GetCurrentBranchUseCase {
private readonly BRANCH_REPOSITORY;
/**
* Constructor
* @param branchRepository The branch repository
*/
constructor(branchRepository: IBranchRepository);
/**
* Execute the use case
* @returns The current branch name
*/
execute(): Promise<string>;
}