Commit Graph

11 Commits

Author SHA1 Message Date
lilong.129
72df285fed fix: get resultsPath 2025-06-12 14:51:15 +08:00
lilong.129
f5f6d177ab fix: optimize report command to avoid creating timestamp directories
- Implement lazy loading for directory creation in config.go
- Add logFile parameter to InitLogger for better control
- Use dynamic directory existence check instead of flags
- Report command now uses console-only logging to prevent directory creation
- Support both JSON and colorized console output formats
- Maintain backward compatibility for all other commands

Changes:
- config.go: Convert directory paths to getter methods with lazy creation
- logger.go: Add logFile parameter and improve logging control
- cmd/root.go: Detect report command and disable file logging
- uixt/*: Update all references to use new getter methods

Fixes the issue where 'hrp report results/' would create unwanted timestamp directories
2025-06-10 12:06:08 +08:00
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
lilong.129
e35aa782c2 fix: get config 2025-03-04 19:39:38 +08:00
余泓铮
d95251ae5d fix: 修复download path错误 2025-02-20 10:49:23 +08:00
余泓铮
ef320a3947 feat: 支持tunnel, 优化server结构。 2025-02-19 20:26:20 +08:00
lilong.129
804a2cd90f refactor: ScreenRecord 2025-02-11 16:06:26 +08:00
lilong.129
81d5ea4890 change: remove live e2e 2025-02-11 12:17:45 +08:00
lilong.129
1f063dd6f7 refactor: move hrp/ to root folder 2025-02-06 11:03:41 +08:00