fix(cli): gracefully handle prompt cancellation and validate template… - #373
fix(cli): gracefully handle prompt cancellation and validate template…#373shobhitagnihotri69 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe CLI now handles prompt cancellation with a yellow message and exit code 0. It validates ChangesCLI validation flow
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The CLI now exits cleanly when setup is cancelled and reports missing required inputs or template directories before creating files. No current merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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
When running
create-bubblelab-app, pressing Ctrl+C or cancelling prompts midway leftprojectNamepopulated whiletemplatewas undefined. The CLI would create an empty target directory and crash withENOENTwhile attempting to copytemplates/undefined.Changes
onCancelhandler topromptsto cleanly exit with code 0 on user cancellation.projectName,template,googleApiKey) are present before touching the filesystem.fs.existsSyncguard fortemplateDir.Summary by CodeRabbit