Enhance the readability of llm-commit interactions in the terminal by introducing ANSI colors for different message types (e.g., success, warnings, errors) to provides clear visual feedback for different message types.
Problem statement
Currently, all output messages from llm-commit are plain text, making it harder to quickly distinguish different types of messages. Adding ANSI colors would improve usability by providing better visual separation between confirmations, prompts, and errors.
Proposed solution
- Use the colorful library to implement ANSI color support.
- Apply color conventions such as:
- Green → Successful actions (e.g., commit confirmed).
- Yellow → Prompts and questions requiring user input.
- Red → Errors and critical failures.
- Implement automatic color detection to ensure compatibility with different terminal environments.
- Respect the
NO_COLOR environment variable to disable colored output when necessary.
References
Enhance the readability of
llm-commitinteractions in the terminal by introducing ANSI colors for different message types (e.g., success, warnings, errors) to provides clear visual feedback for different message types.Problem statement
Currently, all output messages from
llm-commitare plain text, making it harder to quickly distinguish different types of messages. Adding ANSI colors would improve usability by providing better visual separation between confirmations, prompts, and errors.Proposed solution
NO_COLORenvironment variable to disable colored output when necessary.References