lab icon indicating copy to clipboard operation
lab copied to clipboard

Print labels with their colors on lab label list

Open zampierilucas opened this issue 1 year ago • 5 comments

This takes the label.Color hex and converts it to color in HexToRGB in utils, then uses is to set the background color.

Closes: https://github.com/zaquestion/lab/issues/887

zampierilucas avatar Feb 16 '24 19:02 zampierilucas

This is what the labels look like with the change. image

zampierilucas avatar Feb 16 '24 19:02 zampierilucas

as a go noob , I was not able to run the PR from the folder via MYGITLABREPO $ go run ~/lab/main.go -- label list because it couldn't find the go modules so I tried go build -o toto -mod=readonly but it asked for a go mod tidy ? after that I was able to run ~/lab/toto label list and it worked beautifully ty.

teto avatar Feb 20 '24 09:02 teto

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.

prarit avatar Feb 20 '24 13:02 prarit

@prarit I've updated my mr with you suggestion.

zampierilucas avatar Feb 20 '24 18:02 zampierilucas