osv-detector icon indicating copy to clipboard operation
osv-detector copied to clipboard

refactor: replace `fatih/color` with `go-pretty`

Open G-Rath opened this issue 1 year ago • 1 comments

In addition to this shaving ~100kb off the binary, it also means GoLand understands there are string formatting functions since they follow the Sprintf pattern 🎉

G-Rath avatar Oct 31 '24 21:10 G-Rath

CI is currently failing because go-pretty currently does not automatically try to detect color support, so the color codes are being outputted in the test suite and its snapshots.

I have opened https://github.com/jedib0t/go-pretty/issues/352 for this

G-Rath avatar Feb 10 '25 18:02 G-Rath