#51
This commit is contained in:
nrslib 2026-01-31 17:04:07 +09:00
parent 1c46a76bbd
commit ca9283ee82
5 changed files with 6 additions and 6 deletions

View File

@ -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.

View File

@ -64,7 +64,7 @@ Select workflow:
**2. 隔離クローン作成**(オプション)
```
? Create worktree? (y/N)
? Create worktree? (Y/n)
```
`y` を選ぶと `git clone --shared` で隔離環境を作成し、作業ディレクトリをクリーンに保てます。

View File

@ -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 () => {

View File

@ -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 };

View File

@ -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;