feat(minimal): support configuring the file sync during activate - #776
Conversation
📝 WalkthroughWalkthroughThe ChangesActivation synchronization
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
crates/minimal/tests/cli.rs (1)
221-221: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd coverage for the new synchronization modes.
These tests explicitly select
Tarball, so they do not verify the clap default or the newSyncMode::Nonebehavior. Add a parser test for omitted--syncand an activation test confirming thatNoneleaves project files absent.As per coding guidelines, run
cargo test -p minimalfor this Rust change.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@crates/minimal/tests/cli.rs` at line 221, Add tests covering the new synchronization modes: verify CLI parsing defaults to the expected mode when --sync is omitted, and verify activation with SyncMode::None leaves project files absent. Extend the relevant parser and activation tests near the existing SyncMode::Tarball coverage, then run cargo test -p minimal.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@crates/minimal/tests/cli.rs`:
- Line 221: Add tests covering the new synchronization modes: verify CLI parsing
defaults to the expected mode when --sync is omitted, and verify activation with
SyncMode::None leaves project files absent. Extend the relevant parser and
activation tests near the existing SyncMode::Tarball coverage, then run cargo
test -p minimal.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 427aaea1-49a3-4009-9528-6ec290305125
📒 Files selected for processing (2)
crates/minimal/src/lib.rscrates/minimal/tests/cli.rs
Also need this so i can experiment with
git pushSummary by CodeRabbit
New Features
--syncoption to theactivatecommand.Tests