fix(enable): quote interpolated paths/repo in bootstrap prompts · Entire

fix(enable): quote interpolated paths/repo in bootstrap prompts

6b50909→main·

computermode·1w ago·1 file·+3 added/-3 removed

Use %q instead of %s in the init, create-repo, and push confirmation prompts so paths with spaces or the owner/repo target render unambiguously, matching the codebase's prior %q convention. Addresses PR #1720 review.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

Sessions

01KX73A6XAV57E8QXQ6RQRRR2JView transcript

[?
Fix Enable Bootstrap Prompts and DefaultsClaude Code·Opus 4.8·2 steps](/content/gh/entireio/cli/session/4f2e9ec5-f3a7-44b8-b252-056a95de9cbe#timeline-01KX73A6XAV57E8QXQ6RQRRR2J/index.html)

Changes

1

344 unmodified lines

345
346
347
348
348
349
350
351
19 unmodified lines

371
372
373
374
374
375
376
377
31 unmodified lines

409
410
411
412
412
413
414
415

344 unmodified lines

form := NewAccessibleForm(
        huh.NewGroup(
            huh.NewConfirm().
                Title(fmt.Sprintf("Create a GitHub repository for %s?", cwd)).
                Title(fmt.Sprintf("Create a GitHub repository for %q?", cwd)).
                Value(&confirmed),
            ),
        )
19 unmodified lines

form := NewAccessibleForm(
        huh.NewGroup(
            huh.NewConfirm().
                Title(fmt.Sprintf("Push the initial commit to %s?", fullName)).
                Title(fmt.Sprintf("Push the initial commit to %q?", fullName)).
                Value(&confirmed),
            ),
        )
31 unmodified lines

form := NewAccessibleForm(
        huh.NewGroup(
            huh.NewConfirm().
                Title(fmt.Sprintf("Warning: Not a git repository. Initialize a new one in %s?", cwd)).
                Title(fmt.Sprintf("Warning: Not a git repository. Initialize a new one in %q?", cwd)).
                Value(&confirmed),
            ),
        )

Mcmd/entire/cli/setup_github.go+3/-3