-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add -NoColor switch parameter to control colored output in formatters #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@HeyItsGilbert 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs. I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review. |
ed730d5 to
17b1dce
Compare
Co-authored-by: HeyItsGilbert <[email protected]>
17b1dce to
e10fdb4
Compare
* Added multiple log files to the `tests/fixtures/folder` directory to enhance test coverage for the `Read-ChocoLog` function. * Updated test setup to utilize these new log files, ensuring comprehensive testing of log parsing functionality. * Refactored test cases for better clarity and accuracy in assertions.
|
@copilot Bump the minor version. Add a corresponding entry to the changelog. |
|
@HeyItsGilbert, ⭐3 XP earned, 🏆First Comment Added completed, 💪Level 8 achieved! [Details] |
Co-authored-by: HeyItsGilbert <[email protected]>
|
|
||
| - `-NoColor` switch parameter to both `Read-ChocoLog` and `Get-ChocoLogEntry` functions | ||
| - Module-level variable `$script:ChocoLogNoColor` to control formatter behavior | ||
| - Colored output control in `ChocoLog.format.ps1xml` formatter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be careful with Colored, it’s profane in some cases colored retext-profanities
Adds a
-NoColorswitch parameter to bothRead-ChocoLogandGet-ChocoLogEntryfunctions to allow users to disable colored output in the formatter. This addresses user needs for plain text output in environments that don't support ANSI colors or when capturing output for logging systems.Changes
-NoColorparameter to both public functions with proper documentation$script:ChocoLogNoColorto control formatter behaviorChocoLog.format.ps1xmlto conditionally apply colors based on the variable$bgvariable was referenced in the original formatterUsage
Benefits
The implementation allows users to customize their experience based on their terminal capabilities or output requirements while maintaining the enhanced visual experience for users who want colored output.
Fixes #10.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.