DCP-2216 feat: add comprehensive color support and UI enhancements#259
Open
ajmalkhan-eng wants to merge 1 commit intomainfrom
Open
DCP-2216 feat: add comprehensive color support and UI enhancements#259ajmalkhan-eng wants to merge 1 commit intomainfrom
ajmalkhan-eng wants to merge 1 commit intomainfrom
Conversation
Add rich terminal color support with automatic detection: - Add color constants (Green, Red, Yellow, Cyan, ProlificBlue) - Add Unicode and ASCII symbol support for cross-platform compatibility - Implement TTY detection and NO_COLOR environment variable support - Add helper functions: Success(), Error(), Warn(), Info(), Dim(), Bold(), Highlight() - Add Write* functions for direct stderr/stdout output - Implement shouldUseColor() for conditional formatting - Initialize color profile detection (TrueColor/256/16/ASCII) - Add RenderBanner() function for displaying ASCII art banners
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
This was referenced Dec 7, 2025
benmatselby
reviewed
Dec 8, 2025
| const ApplicationName = "prolific" | ||
|
|
||
| // BannerFilePath is the path to the ASCII art banner file | ||
| const BannerFilePath = "banner.txt" |
Contributor
There was a problem hiding this comment.
question: What does this get us? We would have to ship another file for it to render
Contributor
Author
There was a problem hiding this comment.
Sorry I just see this.. I hate gh notifications..
I'll be honest.. it breaks the ascii 🥹 .. I can embed it in to binary on build? or yeet.
it's soo last year anyway 🙈
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds rich terminal colour support and UI helper functions to improve the CLI user experience with consistent, vibrant output.
Changes
Color Support
UI Helper Functions
Success(),Error(),ErrorWithHint(),Warn(),Info()- Styled message formattingDim(),Bold(),Highlight()- Text styling utilitiesWrite*()functions for direct stderr/stdout outputRenderBanner()- Display ASCII art banners in Prolific blueEnhanced Root Command
Technical Details
lipglossfor terminal stylingTesting
All existing tests pass with the new UI functions in place.