-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance logging and documentation generation (#893)
**Key Changes:** - Refactored PrettyHandler for improved color support and flexibility - Updated docGeneration to use go/packages for more robust parsing - Enhanced error handling and logging across multiple packages - Improved test coverage for logging and documentation generation **Added:** - JSON output option for logging - Debug logging for file system operations in doc generation - Helper functions for common test setup tasks in docGeneration_test.go - New OutputType enum to support different logging output formats **Changed:** - Updated PrettyHandler to support both color and JSON output - Refactored CreatePackageDocs to use go/packages for improved parsing - Enhanced error handling in various functions, using errors.New() consistently - Improved test cases for PrettyHandler and docGeneration - Updated LogAndReturnError to use errors.New() for consistency **Removed:** - Unused code in docGeneration.go, including redundant type info extraction - Deprecated outputToFile function in PrettyHandler
- Loading branch information
Showing
9 changed files
with
281 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ coverage-all.out | |
|
||
# File created for debugging with vscode | ||
mage_output_file.go | ||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.