Add selective sync menu and CLI flags to pull-reprint (captured, not yet applied)#3976
Open
epeicher wants to merge 1 commit into
Open
Conversation
1 task
293ee71 to
3a17099
Compare
3a17099 to
49be035
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
How AI was used in this PR
AI (Claude Code) implemented the interactive selector, the CLI flags, the metadata capture, and the unit tests. The execution path was intentionally left inert in this PR — reviewers should confirm the menu/flags are shown and persisted, but the pull still fetches everything.
Proposed Changes
Adds the selective-sync menu to the experimental
pull-reprintcommand so users can choose what to sync. The selector always shows the full picture —pull-reprintruns against a site that already exists locally, so there's a single mode:--only,--skip-database, and--skip-uploadsflags (work with--yes).The choice is recorded into the pull's metadata but not applied yet — the pull still does a full sync — so this lands the UX for iterative review while the Reprint-side commands that act on the selection are built in the follow-up. Runs on the stock
reprint.phar(no Reprint changes). Reprint command invocations are also logged to~/.studio/pulls/<key>/reprint-commands.logfor debugging.Testing Instructions
npm run cli:buildSTUDIO_ENABLE_PULL_REPRINT=1 node apps/cli/dist/cli/main.mjs pull-reprint --url <site> --verbose~/.studio/pulls/<key>/pull.jsonrecordsskipDatabase/skipUploads/fileOnlyPaths.npm test -- apps/cli/lib/pull apps/cli/commands/tests/pull-reprint.test.tsPre-merge Checklist