richgo icon indicating copy to clipboard operation
richgo copied to clipboard

Documentation error: color codes beginning with # must be enclosed in double quotation marks

Open Davincible opened this issue 1 year ago • 2 comments

I am trying to apply custom colors to the output, and created a stylesheet, but I can't get it to be pickedup by rich go.

I have tried

~/.richstyle.yaml
{CWD}/.richstyle.yaml
{CWD}/.richstyle

Stylesheet:

labelType: long
buildStyle:
  bold: true
  foreground: #f7bf23
startStyle:
  foreground: #454440
passStyle:
  foreground: #25bf0d
failStyle:
  bold: true
  foreground: #b80d0d
skipStyle:
  foreground: lightBlack
passPackageStyle:
  foreground: green
  hide: true
failPackageStyle:
  bold: true
  foreground: red
  hide: true
coverThreshold: 50
coveredStyle:
  foreground: green
uncoveredStyle:
  bold: true
  foreground: yellow
fileStyle:
  foreground: cyan
lineStyle:
  foreground: magenta

How can I debug this?

Davincible avatar Sep 07 '22 10:09 Davincible

Figured it out, hex colors need to be quoted, don't work unquoted

Davincible avatar Sep 07 '22 11:09 Davincible

It's not a bug. # is comment mark on YAML.

We should fix the document: README.md

kyoh86 avatar Sep 08 '22 00:09 kyoh86