Commit Graph

3 Commits

Author SHA1 Message Date
lilong.129
184081592c feat: add global .env file support from ~/.hrp/.env
- Add support for loading environment variables from ~/.hrp/.env
- Implement priority order: current working directory > ~/.hrp/.env > system environment variables
- Use godotenv.Overload() for both global and local .env files to ensure proper priority
- Maintain backward compatibility with existing functionality
- Add comprehensive error handling and logging
2025-06-02 11:52:36 +08:00
lilong.129
9418c651f4 fix: load env once 2025-04-21 22:50:00 +08:00
lilong.129
563015c55a refactor: LoadEnv 2025-03-31 14:54:58 +08:00