import { RuntimeGitDiffCommands } from './runtime-git-diff-commands' import { RuntimeGitGenerationCommands } from './runtime-git-generation-commands' import { RuntimeGitStagingCommands } from './runtime-git-staging-commands' import { RuntimeGitStatusCommands } from './runtime-git-status-commands' import { RuntimeGitSyncCommands } from './runtime-git-sync-commands' import type { RuntimeGitCommandHost } from './runtime-git-command-target' export class RuntimeGitCommands { readonly getRuntimeGitStatus: RuntimeGitStatusCommands['getRuntimeGitStatus'] readonly getRuntimeGitSubmoduleStatus: RuntimeGitStatusCommands['getRuntimeGitSubmoduleStatus'] readonly checkRuntimeGitIgnoredPaths: RuntimeGitStatusCommands['checkRuntimeGitIgnoredPaths'] readonly getRuntimeGitRefs: RuntimeGitStatusCommands['getRuntimeGitRefs'] readonly getRuntimeGitHistory: RuntimeGitStatusCommands['getRuntimeGitHistory'] readonly getRuntimeGitConflictOperation: RuntimeGitStatusCommands['getRuntimeGitConflictOperation'] readonly getRuntimeGitMutationInFlight: RuntimeGitStatusCommands['getRuntimeGitMutationInFlight'] readonly readRuntimeWorktreeAtRiskLocalFiles: RuntimeGitStatusCommands['readRuntimeWorktreeAtRiskLocalFiles'] readonly switchRuntimeGitBranch: RuntimeGitStatusCommands['switchRuntimeGitBranch'] readonly checkoutRuntimeGitBranch: RuntimeGitStatusCommands['checkoutRuntimeGitBranch'] readonly listRuntimeGitLocalBranches: RuntimeGitStatusCommands['listRuntimeGitLocalBranches'] readonly getRuntimeGitDiff: RuntimeGitDiffCommands['getRuntimeGitDiff'] readonly getRuntimeGitBranchCompare: RuntimeGitDiffCommands['getRuntimeGitBranchCompare'] readonly getRuntimeGitCommitCompare: RuntimeGitDiffCommands['getRuntimeGitCommitCompare'] readonly getRuntimeGitBranchDiff: RuntimeGitDiffCommands['getRuntimeGitBranchDiff'] readonly getRuntimeGitCommitDiff: RuntimeGitDiffCommands['getRuntimeGitCommitDiff'] readonly getRuntimeGitRemoteFileUrl: RuntimeGitDiffCommands['getRuntimeGitRemoteFileUrl'] readonly getRuntimeGitRemoteCommitUrl: RuntimeGitDiffCommands['getRuntimeGitRemoteCommitUrl'] readonly abortRuntimeGitMerge: RuntimeGitSyncCommands['abortRuntimeGitMerge'] readonly abortRuntimeGitRebase: RuntimeGitSyncCommands['abortRuntimeGitRebase'] readonly getRuntimeGitUpstreamStatus: RuntimeGitSyncCommands['getRuntimeGitUpstreamStatus'] readonly fetchRuntimeGit: RuntimeGitSyncCommands['fetchRuntimeGit'] readonly syncRuntimeGitForkDefaultBranch: RuntimeGitSyncCommands['syncRuntimeGitForkDefaultBranch'] readonly pullRuntimeGit: RuntimeGitSyncCommands['pullRuntimeGit'] readonly fastForwardRuntimeGit: RuntimeGitSyncCommands['fastForwardRuntimeGit'] readonly rebaseRuntimeGitFromBase: RuntimeGitSyncCommands['rebaseRuntimeGitFromBase'] readonly pushRuntimeGit: RuntimeGitSyncCommands['pushRuntimeGit'] readonly commitRuntimeGit: RuntimeGitSyncCommands['commitRuntimeGit'] readonly createRuntimeGitBranch: RuntimeGitSyncCommands['createRuntimeGitBranch'] readonly cherryPickRuntimeGit: RuntimeGitSyncCommands['cherryPickRuntimeGit'] readonly revertRuntimeGit: RuntimeGitSyncCommands['revertRuntimeGit'] readonly sequencerAbortRuntimeGit: RuntimeGitSyncCommands['sequencerAbortRuntimeGit'] readonly sequencerContinueRuntimeGit: RuntimeGitSyncCommands['sequencerContinueRuntimeGit'] readonly completeRuntimeGitMerge: RuntimeGitSyncCommands['completeRuntimeGitMerge'] readonly generateRuntimeCommitMessage: RuntimeGitGenerationCommands['generateRuntimeCommitMessage'] readonly cancelRuntimeGenerateCommitMessage: RuntimeGitGenerationCommands['cancelRuntimeGenerateCommitMessage'] readonly generateRuntimePullRequestFields: RuntimeGitGenerationCommands['generateRuntimePullRequestFields'] readonly cancelRuntimeGeneratePullRequestFields: RuntimeGitGenerationCommands['cancelRuntimeGeneratePullRequestFields'] readonly discoverRuntimeCommitMessageModels: RuntimeGitGenerationCommands['discoverRuntimeCommitMessageModels'] readonly stageRuntimeGitPath: RuntimeGitStagingCommands['stageRuntimeGitPath'] readonly resolveRuntimeGitConflict: RuntimeGitStagingCommands['resolveRuntimeGitConflict'] readonly unstageRuntimeGitPath: RuntimeGitStagingCommands['unstageRuntimeGitPath'] readonly bulkStageRuntimeGitPaths: RuntimeGitStagingCommands['bulkStageRuntimeGitPaths'] readonly bulkUnstageRuntimeGitPaths: RuntimeGitStagingCommands['bulkUnstageRuntimeGitPaths'] readonly bulkDiscardRuntimeGitPaths: RuntimeGitStagingCommands['bulkDiscardRuntimeGitPaths'] readonly discardRuntimeGitPath: RuntimeGitStagingCommands['discardRuntimeGitPath'] constructor(host: RuntimeGitCommandHost) { const status = new RuntimeGitStatusCommands(host) const diff = new RuntimeGitDiffCommands(host) const sync = new RuntimeGitSyncCommands(host) const generation = new RuntimeGitGenerationCommands(host) const staging = new RuntimeGitStagingCommands(host) this.getRuntimeGitStatus = status.getRuntimeGitStatus.bind(status) this.getRuntimeGitSubmoduleStatus = status.getRuntimeGitSubmoduleStatus.bind(status) this.checkRuntimeGitIgnoredPaths = status.checkRuntimeGitIgnoredPaths.bind(status) this.getRuntimeGitRefs = status.getRuntimeGitRefs.bind(status) this.getRuntimeGitHistory = status.getRuntimeGitHistory.bind(status) this.getRuntimeGitConflictOperation = status.getRuntimeGitConflictOperation.bind(status) this.getRuntimeGitMutationInFlight = status.getRuntimeGitMutationInFlight.bind(status) this.readRuntimeWorktreeAtRiskLocalFiles = status.readRuntimeWorktreeAtRiskLocalFiles.bind(status) this.switchRuntimeGitBranch = status.switchRuntimeGitBranch.bind(status) this.checkoutRuntimeGitBranch = status.checkoutRuntimeGitBranch.bind(status) this.listRuntimeGitLocalBranches = status.listRuntimeGitLocalBranches.bind(status) this.getRuntimeGitDiff = diff.getRuntimeGitDiff.bind(diff) this.getRuntimeGitBranchCompare = diff.getRuntimeGitBranchCompare.bind(diff) this.getRuntimeGitCommitCompare = diff.getRuntimeGitCommitCompare.bind(diff) this.getRuntimeGitBranchDiff = diff.getRuntimeGitBranchDiff.bind(diff) this.getRuntimeGitCommitDiff = diff.getRuntimeGitCommitDiff.bind(diff) this.getRuntimeGitRemoteFileUrl = diff.getRuntimeGitRemoteFileUrl.bind(diff) this.getRuntimeGitRemoteCommitUrl = diff.getRuntimeGitRemoteCommitUrl.bind(diff) this.abortRuntimeGitMerge = sync.abortRuntimeGitMerge.bind(sync) this.abortRuntimeGitRebase = sync.abortRuntimeGitRebase.bind(sync) this.getRuntimeGitUpstreamStatus = sync.getRuntimeGitUpstreamStatus.bind(sync) this.fetchRuntimeGit = sync.fetchRuntimeGit.bind(sync) this.syncRuntimeGitForkDefaultBranch = sync.syncRuntimeGitForkDefaultBranch.bind(sync) this.pullRuntimeGit = sync.pullRuntimeGit.bind(sync) this.fastForwardRuntimeGit = sync.fastForwardRuntimeGit.bind(sync) this.rebaseRuntimeGitFromBase = sync.rebaseRuntimeGitFromBase.bind(sync) this.pushRuntimeGit = sync.pushRuntimeGit.bind(sync) this.commitRuntimeGit = sync.commitRuntimeGit.bind(sync) this.createRuntimeGitBranch = sync.createRuntimeGitBranch.bind(sync) this.cherryPickRuntimeGit = sync.cherryPickRuntimeGit.bind(sync) this.revertRuntimeGit = sync.revertRuntimeGit.bind(sync) this.sequencerAbortRuntimeGit = sync.sequencerAbortRuntimeGit.bind(sync) this.sequencerContinueRuntimeGit = sync.sequencerContinueRuntimeGit.bind(sync) this.completeRuntimeGitMerge = sync.completeRuntimeGitMerge.bind(sync) this.generateRuntimeCommitMessage = generation.generateRuntimeCommitMessage.bind(generation) this.cancelRuntimeGenerateCommitMessage = generation.cancelRuntimeGenerateCommitMessage.bind(generation) this.generateRuntimePullRequestFields = generation.generateRuntimePullRequestFields.bind(generation) this.cancelRuntimeGeneratePullRequestFields = generation.cancelRuntimeGeneratePullRequestFields.bind(generation) this.discoverRuntimeCommitMessageModels = generation.discoverRuntimeCommitMessageModels.bind(generation) this.stageRuntimeGitPath = staging.stageRuntimeGitPath.bind(staging) this.resolveRuntimeGitConflict = staging.resolveRuntimeGitConflict.bind(staging) this.unstageRuntimeGitPath = staging.unstageRuntimeGitPath.bind(staging) this.bulkStageRuntimeGitPaths = staging.bulkStageRuntimeGitPaths.bind(staging) this.bulkUnstageRuntimeGitPaths = staging.bulkUnstageRuntimeGitPaths.bind(staging) this.bulkDiscardRuntimeGitPaths = staging.bulkDiscardRuntimeGitPaths.bind(staging) this.discardRuntimeGitPath = staging.discardRuntimeGitPath.bind(staging) } }