parent
1c46a76bbd
commit
ca9283ee82
@ -68,7 +68,7 @@ Select workflow:
|
||||
**2. Isolated clone** (optional)
|
||||
|
||||
```
|
||||
? Create worktree? (y/N)
|
||||
? Create worktree? (Y/n)
|
||||
```
|
||||
|
||||
Choose `y` to run in a `git clone --shared` isolated environment, keeping your working directory clean.
|
||||
|
||||
@ -64,7 +64,7 @@ Select workflow:
|
||||
**2. 隔離クローン作成**(オプション)
|
||||
|
||||
```
|
||||
? Create worktree? (y/N)
|
||||
? Create worktree? (Y/n)
|
||||
```
|
||||
|
||||
`y` を選ぶと `git clone --shared` で隔離環境を作成し、作業ディレクトリをクリーンに保てます。
|
||||
|
||||
@ -154,7 +154,7 @@ describe('confirmAndCreateWorktree', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('should call confirm with default=false', async () => {
|
||||
it('should call confirm with default=true', async () => {
|
||||
// Given
|
||||
mockConfirm.mockResolvedValue(false);
|
||||
|
||||
@ -162,7 +162,7 @@ describe('confirmAndCreateWorktree', () => {
|
||||
await confirmAndCreateWorktree('/project', 'task');
|
||||
|
||||
// Then
|
||||
expect(mockConfirm).toHaveBeenCalledWith('Create worktree?', false);
|
||||
expect(mockConfirm).toHaveBeenCalledWith('Create worktree?', true);
|
||||
});
|
||||
|
||||
it('should summarize Japanese task name to English slug', async () => {
|
||||
|
||||
@ -131,7 +131,7 @@ export async function confirmAndCreateWorktree(
|
||||
cwd: string,
|
||||
task: string,
|
||||
): Promise<WorktreeConfirmationResult> {
|
||||
const useWorktree = await confirm('Create worktree?', false);
|
||||
const useWorktree = await confirm('Create worktree?', true);
|
||||
|
||||
if (!useWorktree) {
|
||||
return { execCwd: cwd, isWorktree: false };
|
||||
|
||||
@ -113,7 +113,7 @@ export async function addTask(cwd: string, task?: string): Promise<void> {
|
||||
let branch: string | undefined;
|
||||
let workflow: string | undefined;
|
||||
|
||||
const useWorktree = await confirm('Create worktree?', false);
|
||||
const useWorktree = await confirm('Create worktree?', true);
|
||||
if (useWorktree) {
|
||||
const customPath = await promptInput('Worktree path (Enter for auto)');
|
||||
worktree = customPath || true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user