@shutootaki/gwm
Version:
git worktree manager CLI
16 lines • 524 B
TypeScript
interface UseWorktreeOptions {
fromBranch?: string;
openCode?: boolean;
openCursor?: boolean;
outputPath?: boolean;
onSuccess?: (data: {
path: string;
actions: string[];
}) => void;
onError?: (message: string) => void;
}
export declare function useWorktree({ fromBranch, openCode, openCursor, outputPath, onSuccess, onError, }: UseWorktreeOptions): {
createWorktree: (branch: string, isRemote: boolean) => Promise<void>;
};
export {};
//# sourceMappingURL=useWorktree.d.ts.map