treefmt icon indicating copy to clipboard operation
treefmt copied to clipboard

Feature: Colorized Output in shell

Open sambacha opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Treefmt should have color coded output relative to the loglevel that is being emitted

Describe the solution you'd like

[ERR]: Ignoring formatter #flake8 due to error: cannot find binary path
[ERR]: Ignoring formatter #nix due to error: cannot find binary path
[WARN]: cache: failed to load the manifest due to: No such file or directory (os error 2)
[INFO]: #hadolint: 3 files processed in 236.49ms
[INFO]: #shell: 22 files processed in 626.19ms
[INFO]: #black: 27 files processed in 857.03ms
[INFO]: #prettier: 114 files processed in 2.99s
[INFO]: #terraform: 261 files processed in 9.14s

What loglevel color coding should be [ERR] = RED [WARN] = YELLOW [INFO] = BLUE

sambacha avatar May 04 '22 14:05 sambacha