Deduplicate DB lifecycle management in CLI commands#14
Conversation
Extract repeated database open/defer-close boilerplate into a withDatabase helper, reducing duplication across all 9 CLI commands. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughRefactored CLI command handlers in a single file by extracting shared database initialization and cleanup logic into a new Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
withDatabasehelper functionadd,remove,blogs,scan,articles,read,read-all,unread,import) to use the helperTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit