[Feature] lpop env - set env without .env - #39
Conversation
|
Claude finished @tombeckenham's task —— View job Pull Request ReviewI've completed a comprehensive review of the new Todo List:
✅ StrengthsCode Quality & Architecture
Test Coverage
Security
🔧 Areas for ImprovementPerformance Considerations
Error Handling & UX
Code Style
💡 SuggestionsMinor Enhancements
Documentation
🔍 Specific Code Comments
|
|
Claude finished @tombeckenham's task —— View job Pull Request ReviewI've completed a comprehensive review of the new Todo List:
✅ StrengthsCode Quality & Architecture
Test Coverage
Security
Documentation
🔧 Areas for ImprovementPerformance Considerations
Error Handling & UX
Code Style
💡 SuggestionsMinor Enhancements
Documentation
🔍 Specific Code Comments
|
nickbeckenham
left a comment
There was a problem hiding this comment.
please validate the tests are testing the expected behaviour based on documentation in particular the -- argument.
| lpop API_KEY=sk-secret123 | ||
| lpop DATABASE_URL=postgres://localhost:5432/mydb | ||
|
|
||
| # 2. Delete .env files completely |
There was a problem hiding this comment.
This is a bit inflammatory. Can probably just not have this step. instead mention the secrets are injected without a .env
| { key: 'DB_URL', value: 'postgres://localhost' }, | ||
| ]); | ||
|
|
||
| process.argv = ['node', 'lpop', 'env', 'npm', 'start']; |
There was a problem hiding this comment.
Most of these tests are different to the documentation in particular there is no -- arg.
|
Claude finished @tombeckenham's task —— View job Pull Request ReviewI've completed a comprehensive review of the new Todo List:
🚨 Critical Issue Found - Test/Documentation MismatchThe reviewer @nickbeckenham was absolutely correct! There's a significant mismatch between the documentation and test behavior: Documentation Claims:
Test Reality:
Implementation Analysis:The code in
But this creates confusion about the intended interface. ✅ Code Quality & Security AnalysisStrengths:
Areas for Improvement:
🔧 Recommended Actions1. Fix Test/Documentation Alignment (Required)Either:
2. Address README Comment (Required)Remove the inflammatory language in 3. Minor Enhancements (Optional)
📊 Risk AssessmentAgrees with Medium risk - the implementation is secure and well-tested, but the documentation mismatch could confuse users about the correct usage pattern. 🎯 Overall AssessmentConditional Approval - The core implementation is excellent, but the test/documentation mismatch needs to be resolved before merge to ensure consistent user experience. |
Related Issue
Fixes #38
Summary of Changes
Added an env command that sets environment variables before calling a process. This way the user can replace the .env file altogether
Risk Assessment
Additional Notes
We might want to look at supporting prefixes e.g. VITE_ when injecting into front end code