Skip to content

feat: prompt before overwriting existing or invalid repos during batch clone#17

Merged
masonlet merged 11 commits into
mainfrom
feat/clone-batch-confirm
Jul 3, 2026
Merged

feat: prompt before overwriting existing or invalid repos during batch clone#17
masonlet merged 11 commits into
mainfrom
feat/clone-batch-confirm

Conversation

@masonlet

@masonlet masonlet commented Jul 3, 2026

Copy link
Copy Markdown
Member

Summary

Mono/batch cloning previously silently skipped any repo directory that already
existed on disk, no update, no prompt, regardless of --yes, and didn't
distinguish a real git repo from a stale/invalid leftover directory. This adds:

  • A prompt before updating an existing repo during batch clone, with a/s
    shortcuts (update-all / skip-all) once a batch reaches 5+ repos.
  • Detection of directories that exist but aren't actually git repos (no .git),
    with an explicit "remove and re-clone?" prompt. This destructive action is
    never auto-confirmed by --yes, destructive actions should be explicitly set.

Also includes some structural cleanup: splitting repository.rs and prompts.rs into per-concern modules, replacing clone_repo's on_exists_skip/yes bool pair with a pluggable on_exists callback (so both single- and batch-clone modes can supply their own decision without duplicating the clone/pull mechanics).

@masonlet
masonlet merged commit bee22ab into main Jul 3, 2026
10 checks passed
@masonlet
masonlet deleted the feat/clone-batch-confirm branch July 3, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant