-
Notifications
You must be signed in to change notification settings - Fork 11
Remove dotenv dependency #150
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
Conversation
Code refactoring
WalkthroughThis PR removes the dotenvy dependency, deletes automatic .env loading from startup, switches environment access to Rust's std::env::var in utilities, and updates README and .env-sample to reflect the new env-var names and installation instructions. Changes
Sequence Diagram(s)No sequence diagram provided — changes are limited to dependency removal and simple env-access refactors with no new control flow. Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (5)
Cargo.toml(0 hunks)README.md(4 hunks)src/main.rs(0 hunks)src/util/messaging.rs(1 hunks)src/util/net.rs(1 hunks)
💤 Files with no reviewable changes (2)
- src/main.rs
- Cargo.toml
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-09-09T19:18:57.161Z
Learnt from: arkanoider
Repo: MostroP2P/mostro-cli PR: 135
File: src/cli/add_invoice.rs:57-79
Timestamp: 2025-09-09T19:18:57.161Z
Learning: arkanoider prefers to bubble up errors with anyhow::Result instead of using tokio::spawn with eprintln! error handling in Nostr DM sending scenarios, as the spawn is often overkill for simple send operations.
Applied to files:
src/util/net.rs
📚 Learning: 2025-09-12T20:02:14.291Z
Learnt from: arkanoider
Repo: MostroP2P/mostro-cli PR: 135
File: src/cli.rs:301-306
Timestamp: 2025-09-12T20:02:14.291Z
Learning: The mostro-cli is designed as a test client that allows users to test both regular user operations and admin operations from the terminal. Therefore, MOSTRO_PUBKEY should always be required regardless of whether NSEC_PRIVKEY is present, as both user and admin operations need to know which Mostro instance to interact with.
Applied to files:
README.md
🧬 Code graph analysis (2)
src/util/messaging.rs (1)
src/cli.rs (1)
std(398-402)
src/util/net.rs (2)
src/cli.rs (1)
std(398-402)src/util/messaging.rs (1)
var(214-216)
🪛 GitHub Actions: CI Mostro-cli
src/util/messaging.rs
[error] 1-1: rustfmt check failed. Formatting differences detected. Run 'cargo fmt' to fix.
[error] 8-8: rustfmt check failed. Formatting differences detected. Run 'cargo fmt' to fix.
src/util/net.rs
[error] 1-1: rustfmt check failed. Formatting differences detected. Run 'cargo fmt' to fix.
Code refactoring
Summary by CodeRabbit
Documentation
Chores
✏️ Tip: You can customize this high-level summary in your review settings.