diff --git a/README.md b/README.md index 7940518..5e322d9 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/docs/README.ja.md b/docs/README.ja.md index 588b893..102cc69 100644 --- a/docs/README.ja.md +++ b/docs/README.ja.md @@ -64,7 +64,7 @@ Select workflow: **2. 隔離クローン作成**(オプション) ``` -? Create worktree? (y/N) +? Create worktree? (Y/n) ``` `y` を選ぶと `git clone --shared` で隔離環境を作成し、作業ディレクトリをクリーンに保てます。 diff --git a/src/__tests__/cli-worktree.test.ts b/src/__tests__/cli-worktree.test.ts index a46a6f6..614b03c 100644 --- a/src/__tests__/cli-worktree.test.ts +++ b/src/__tests__/cli-worktree.test.ts @@ -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 () => { diff --git a/src/cli.ts b/src/cli.ts index 940ee9c..8ae340c 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -131,7 +131,7 @@ export async function confirmAndCreateWorktree( cwd: string, task: string, ): Promise { - const useWorktree = await confirm('Create worktree?', false); + const useWorktree = await confirm('Create worktree?', true); if (!useWorktree) { return { execCwd: cwd, isWorktree: false }; diff --git a/src/commands/addTask.ts b/src/commands/addTask.ts index 357d8ab..9cdd174 100644 --- a/src/commands/addTask.ts +++ b/src/commands/addTask.ts @@ -113,7 +113,7 @@ export async function addTask(cwd: string, task?: string): Promise { 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;