Description
The colours used in the output are inconsistent across the snitch (or snitch top) and snitch ls commands.
snitch / snitch top: This uses the colours I've configured in my terminal (this is preferred). It appears to use Lipgloss and has the desired result.
snitch ls: This uses specific, hardcoded colour values (reference)
I found the colour-related code references for each:
- Code for
top command
- Code for
ls command
They appear to be doing very different things, not sure if this is intentional. It would be great if all commands used the colours I've configured in my terminal instead of custom colours.
It also seems like the --theme flag is only supported for top but that looks intentional.
macOS 14.5
go1.25.7
iTerm2 colour configuration, for reference (bright and normal are the same):
Output for command snitch top
Uses the colours I've configured (this is desirable).
Output for command snitch ls
Uses custom colours that I have not configured for my terminal (undesirable).
Other example output using macOS Terminal with Homebrew theme
I've also provided output for a default theme and terminal all macOS users would have. In this output you can see the colours are lighter in the ls command, which changes them from the theme's configuration. It's not as noticeable in this theme as it is in mine.
Steps to Reproduce
- Choose a theme (maybe one that's custom, or Homebrew in macOS Terminal)
- Run
snitch or snitch top to see the desirable colour output
- Run
snitch ls to see the undesirable colours
Expected Behavior
It's expected that CLI tools use the terminal colours I've configured instead of creating custom colours.
Actual Behavior
Unexpected colour output for colours that are not defined in my terminal theme.
Version
snitch dev commit none built unknown go go1.25.7 os darwin/amd64
Operating System
macOS
OS Version
macOS 14.5
Installation Method
go install
Configuration
Logs / Terminal Output
Additional Context
If you wanted to test with my iTerm2 theme you can get it here.
Description
The colours used in the output are inconsistent across the
snitch(orsnitch top) andsnitch lscommands.snitch/snitch top: This uses the colours I've configured in my terminal (this is preferred). It appears to use Lipgloss and has the desired result.snitch ls: This uses specific, hardcoded colour values (reference)I found the colour-related code references for each:
topcommandlscommandThey appear to be doing very different things, not sure if this is intentional. It would be great if all commands used the colours I've configured in my terminal instead of custom colours.
It also seems like the
--themeflag is only supported fortopbut that looks intentional.macOS 14.5
go1.25.7
iTerm2 colour configuration, for reference (bright and normal are the same):
Output for command
snitch topUses the colours I've configured (this is desirable).
Output for command
snitch lsUses custom colours that I have not configured for my terminal (undesirable).
Other example output using macOS Terminal with Homebrew theme
I've also provided output for a default theme and terminal all macOS users would have. In this output you can see the colours are lighter in the
lscommand, which changes them from the theme's configuration. It's not as noticeable in this theme as it is in mine.Steps to Reproduce
snitchorsnitch topto see the desirable colour outputsnitch lsto see the undesirable coloursExpected Behavior
It's expected that CLI tools use the terminal colours I've configured instead of creating custom colours.
Actual Behavior
Unexpected colour output for colours that are not defined in my terminal theme.
Version
snitch dev commit none built unknown go go1.25.7 os darwin/amd64
Operating System
macOS
OS Version
macOS 14.5
Installation Method
go install
Configuration
n/aLogs / Terminal Output
Additional Context
If you wanted to test with my iTerm2 theme you can get it here.