import{n as e}from"./utils-DMbpVz3Q.js";import{t}from"./pr-DC2iMrPz.js";import{t as n}from"./view-BZmgL-cB.js";import{t as r}from"./worktree-DTI5xaFs.js";import{t as i}from"./create-DiqmyIaU.js";var a=class{async execute(a){if(a.command!==`prv`&&await e(a.cwd),a.command===`worktree`)return r(a.data,a.cwd);if(a.command===`prr`)return t(a.data,a.cwd);if(a.command===`prv`)return n(a.data,a.cwd);if(a.command===`prc`)return i(a.data,a.cwd);let o=a;throw Error(`Unknown git command: ${o}`)}};export{a as t};