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
This commit is contained in:
lilong.129
2025-06-02 11:52:36 +08:00
parent 9089bd9324
commit 184081592c
2 changed files with 23 additions and 2 deletions

View File

@@ -1 +1 @@
v5.0.0-beta-2505310028
v5.0.0-beta-2506021152