Skip to content

Conversation

@cbandera
Copy link

Adresses #351:

  • Add support for coloring recently failed commands (non-zero exit code, default: yellow)
  • Add support for coloring broken commands (exit_factor == 0.0, default: red)
  • Update configuration to support new color settings in both light and dark modes and from config file.
  • Reduces code duplication and complexity by refactor color handling to use a unified ThemeColors struct
image

The changes maintain backward compatibility while adding visual distinction between successful, recently failed, and always-failing commands.

@cbandera cbandera force-pushed the feature/351-color-by-exit-code branch from 4561c19 to 198f1f6 Compare December 29, 2025 20:54
@cbandera
Copy link
Author

The diff has gotten somewhat polluted due to my refactoring and attempt to reduce code duplication.
The actual color fix is pretty small, I have hence split my commit in two again. Let me know if you prefer to only merge the first one.

- Add support for different colors for recently failed commands (non-zero exit code)
- Add support for different colors for broken commands (exit_factor == 0.0)
- Update configuration to support new color settings in both light and dark modes

The changes maintain backward compatibility while adding visual distinction
between successful, recently failed, and always-failing commands.
@cbandera cbandera force-pushed the feature/351-color-by-exit-code branch from 198f1f6 to ba8cccf Compare December 29, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant