Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
📝 WalkthroughWalkthroughAdds a new boolean CLI option Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ExitHandler as Exit Handler
participant Prompt as Prompter
participant RemoveAction as Remover
participant Logger as Logger
User->>ExitHandler: Press Ctrl+C
ExitHandler->>Prompt: If remove-on-exit -> ask confirmation
alt confirmed
Prompt->>RemoveAction: spawn remove action
RemoveAction->>Logger: emit progress updates
RemoveAction->>Logger: emit success / completion
else cancelled
Prompt->>Logger: emit cancellation warning
end
ExitHandler->>Logger: log final blank line
ExitHandler->>User: exit process
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0fb6db6783
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
Adds a
--remove-on-exitflag to theserverless devcommand that prompts users to remove the deployed service stack when exiting Dev Mode with Ctrl+C.Changes
--remove-on-exitboolean option to the dev command schemaRemove "service-name" from stage "stage" in "region"? (y/N)serverless removewith a spinner showing progressserverless deployorserverless removeUsage
Why
Dev Mode deploys a modified service with instrumentation shim. After exiting, users must either:
This flag streamlines the teardown workflow for users who want to clean up immediately after development.
Summary by CodeRabbit
New Features
Documentation