-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Print labels with their colors on lab label list #888
base: master
Are you sure you want to change the base?
Conversation
This takes the label.color hex and converts it to color in HexToRGB in utils, then uses rgbterm lib to convert rgb to terminal color. Signed-off-by: Lucas Zampieri <lzampier@redhat.com>
51da8c3
to
83be724
Compare
as a go noob , I was not able to run the PR from the folder via |
I like this change but I think it should be optional. @zampierilucas I think you should add a config option for this to enable the colors. That way users can set it in their lab.toml and not worry about it. |
Label colored printing can be enabled by the --color param, or by using the config file. Signed-off-by: Lucas Zampieri <lzampier@redhat.com>
@prarit I've updated my mr with you suggestion. |
title Signed-off-by: Lucas Zampieri <lzampier@redhat.com>
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.
We can make this change generic to every lab command.
Since it's a bigger change, this one is fine wrt the request.
was the CI failure linked to this PR ? else maybe it's mergeable ? |
This takes the
label.Color
hex and converts it to color in HexToRGB in utils, then uses is to set the background color.Closes: #887