UNPKG

@elsikora/git-branch-lint

Version:
26 lines (25 loc) 1.26 kB
import type { CheckWorkingDirectoryUseCase } from "../../../application/use-cases/check-working-directory.use-case"; import type { CreateBranchUseCase } from "../../../application/use-cases/create-branch.use-case"; import type { GetBranchConfigUseCase } from "../../../application/use-cases/get-branch-config.use-case"; import type { PushBranchUseCase } from "../../../application/use-cases/push-branch.use-case"; /** * Controller for branch creation CLI operations */ export declare class CreateBranchController { private readonly BRANCH_CREATION_PROMPT; private readonly CHECK_WORKING_DIRECTORY_USE_CASE; private readonly CREATE_BRANCH_USE_CASE; private readonly GET_BRANCH_CONFIG_USE_CASE; private readonly PUSH_BRANCH_USE_CASE; constructor(checkWorkingDirectoryUseCase: CheckWorkingDirectoryUseCase, createBranchUseCase: CreateBranchUseCase, getBranchConfigUseCase: GetBranchConfigUseCase, pushBranchUseCase: PushBranchUseCase); /** * Execute the branch creation flow * @param appName The application name for configuration */ execute(appName: string): Promise<void>; /** * Handle errors that occur during branch creation * @param error The error that occurred */ private handleError; }