Commit Graph

5 Commits

Author SHA1 Message Date
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
03c0d6ee42 docs: update hrp cmd docs 2025-04-24 22:31:03 +08:00
lilong.129
d63e5e0c1a feat: add GitCommit/GitBranch/BuildTime in version info 2025-03-17 20:40:03 +08:00
lilong.129
69cb417e94 change: introduction for httprunner 2025-03-08 00:14:30 +08:00
lilong.129
1f063dd6f7 refactor: move hrp/ to root folder 2025-02-06 11:03:41 +08:00