feat: add CLI version flag#192
Conversation
|
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 (2)
📝 WalkthroughWalkthroughThis PR adds a ChangesCLI Version Flag
🎯 1 (Trivial) | ⏱️ ~5 minutes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Adds a
--version/-vCLI guard to theoutlook-assistantentrypoint so operators can check the installed package version without starting the MCP server. The flag readspackage.json, prints@littlebearapps/outlook-assistant v<version>, and exits before config/module loading or startup logs.Closes #68.
Verification
npm test -- test/cli-version.test.js --runInBandnode index.js --versionnode index.js -vnpm run lint(0 errors; existing warnings unchanged)npm run format:checkgit diff --checknpm test -- --runInBandSummary by CodeRabbit
New Features
--versionand-vCLI flags to display the server package name and version information.Tests