import { isGitInstalled, isGitRepo } from "./git.js"; import { pushPathViaGit } from "../pathOperations/pushPathViaGit.js"; import { pushHarness } from "./pushHarness.js"; /** * Push via git — checks git is installed and dir is a repo, then delegates to pushHarness. */ export const pushViaGit = async (ctx, source) => { if (!(await isGitInstalled())) { throw new Error('Git is not installed. Please install git to use push command.'); } if (!(await isGitRepo())) { throw new Error('Current directory is not a git repository. Initialize with: git init'); } await pushHarness(pushPathViaGit)(ctx, source); }; //# sourceMappingURL=pushViaGit.js.map