-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: eol in env #60
fix: eol in env #60
Conversation
WalkthroughThe changes in this pull request focus on the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant EnvGenerator
participant EnvFile
User->>EnvGenerator: Request to generate .env file
EnvGenerator->>EnvGenerator: Read existing environment variables
EnvGenerator->>EnvGenerator: Generate default values
EnvGenerator->>EnvGenerator: Merge custom environment variables
EnvGenerator->>EnvGenerator: Append newline to merged string
EnvGenerator->>EnvFile: Write to .env file
EnvFile-->>EnvGenerator: Confirm write success
EnvGenerator-->>User: Return result
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (2)src/utils/env.rs (2)
Adding a final newline character ensures the generated
The same EOF newline handling is correctly applied to both code paths (merged and new environment strings), maintaining consistency throughout the file generation process. Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
Bug Fixes
Chores