feat(sandbox): add exclude/mode/quiet sync flags#59
Merged
Conversation
Bring mc-mirror-style flags to `sandbox sync`, mapped onto Mutagen: - --exclude (repeatable) -> mutagen --ignore - --mode two-way|one-way|mirror -> --sync-mode (mirror deletes extras on the sandbox) - --quiet/-q -> suppress progress, block until Ctrl+C - --no-ignore-vcs -> override the hardcoded --ignore-vcs Defaults unchanged (two-way, VCS skipped, progress shown). Also document the website-04 docs sync rule in CLAUDE.md.
Contributor
Author
pratikbin
added a commit
that referenced
this pull request
Jun 30, 2026
Recovers fix commit dropped when #59 squash-merged a stale PR head. parseSyncArgs recovers flags placed after the sandbox positional (urfave/cli v2 limitation); pure mutagenCreateArgs + --quiet output sinks + regression tests.
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.
What
Brings
mc mirror-style flags tocreateos sandbox sync, mapped onto the underlying Mutagen v0.18.1 engine.--exclude(repeatable)mutagen --ignore=--exclude '*.log' --exclude node_modules--mode two-way|one-way|mirror--sync-mode=two-way-safe|one-way-safe|one-way-replicamirrormakes the sandbox identical and deletes extras (mc's mirror +--remove)--quiet,-q--no-ignore-vcs--ignore-vcs.gitetc.Friendly
--modenames hide Mutagen's vocabulary.--modevalidated up front (fails before any SSH / Mutagen work). Defaults unchanged: two-way, VCS skipped, progress shown.Why
Asked for mc-mirror-like ergonomics on sync. Skipped mc flags with no honest Mutagen equivalent:
--dry-run,--json,--watch(already always-on),--region/--enc/--max-workers/--older-than.Docs
README.mdupdated;CLAUDE.mdgains a 'Keeping the Website Docs in Sync' rule.website-04.Verify
go build/go vet/ golangci-lint v2 (0 issues) / gosec (0 issues) all green.sync --helprenders all 4 flags.