You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
crates/cli/src/cmd/scan.rs::run has 8+ parameters and growing. The desktop crate's commands.rs duplicates much of the same logic. Phase 1c spec acknowledged this as tech debt and deferred a `ScanContext` struct.
Action
Create a `ScanContext` builder that holds scanner, hasher, file_repo, volume_repo, device_id, cancel flag, and args. Both CLI and desktop construct it and call `context.run()`. This also eliminates the scan logic duplication between CLI and desktop.
Priority
Medium — current code works but the parameter count and duplication will get worse as phases 3+ add more scan features (watching, progress events).
Activity
fix(db): V004 backfill NULL thumbnail_status to 'pending' + insert de…
chore(release): v0.4.2 — phase 4 hotfix