Skip to content

Make --dry-run a synchronize-specific option#19

Merged
mthadley merged 1 commit intomasterfrom
fix-dry-run
Feb 10, 2026
Merged

Make --dry-run a synchronize-specific option#19
mthadley merged 1 commit intomasterfrom
fix-dry-run

Conversation

@mthadley
Copy link
Collaborator

@mthadley mthadley commented Feb 10, 2026

Summary

  • --dry-run was defined as a global option on BaseCommand, but only the synchronize command implemented it. All other commands would throw "Dry run not yet supported." at runtime.
  • Moved --dry-run from BaseCommand to SynchronizeCommand and removed the dry-run plumbing from Pgslice.

Test plan

  • npm run build passes
  • All 292 tests pass (npm test -- run)
  • npx pgslice synchronize --help shows --dry-run
  • Other commands (e.g. npx pgslice prep --help) do not show --dry-run

🤖 Generated with Claude Code

--dry-run was defined on BaseCommand but only implemented by the
synchronize command. All other commands would throw "Dry run not yet
supported." at runtime. Move the option to SynchronizeCommand and remove
the dry-run plumbing from Pgslice.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mthadley mthadley requested a review from stefanmb February 10, 2026 19:55
@mthadley mthadley merged commit 41216c2 into master Feb 10, 2026
7 checks passed
@mthadley mthadley deleted the fix-dry-run branch February 10, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants