aider/aider
Paul Gauthier 03cc679a5b aider: Added tool_color and tool_error_color properties to InputOutput class and updated style and console print accordingly.
# Context:
USER: move the red and green colors for tool and tool_error into self. properties. add args to init with red and green defaults.
ASSISTANT: To make the changes, I will modify the `aider/io.py` file. Here are the changes:

```python
aider/io.py
<<<<<<< ORIGINAL
class InputOutput:
    def __init__(
        self,
        pretty=True,
        yes=False,
        input_history_file=None,
        chat_history_file=None,
        input=None,
        output=None,
    ):
=======
class InputOutput:
    def __init__(
        self,
        pretty=True,
        yes=False,
        input_history_file=None,
        chat_history_file=None,
        input=None,
        output=None,
        tool_color="green",
        tool_error_color="red",
    ):
        self.tool_color = tool_color
        self.tool_error_color = tool_error_color
>>>>>>> UPDATED
```

```python
aider/io.py
<<<<<<< ORIGINAL
        style = Style.from_dict({"": "green"})
=======
        style = Style.from_dict({"": self.tool_color})
>>>>>>> UPDATED
```

```python
aider/io.py
<<<<<<< ORIGINAL
        self.console.print(message, style="red")
=======
        self.console.print(message, style=self.tool_error_color)
>>>>>>> UPDATED
```
2023-05-27 14:54:04 -07:00
..
__init__.py initial 2023-05-09 11:00:32 -07:00
coder.py auto-complete filenames 2023-05-27 08:54:10 -07:00
commands.py cleaned up /exit, normalized /help 2023-05-26 12:21:43 -07:00
dump.py black formatting 2023-05-17 18:24:35 -07:00
io.py aider: Added tool_color and tool_error_color properties to InputOutput class and updated style and console print accordingly. 2023-05-27 14:54:04 -07:00
main.py removed wip: prefix from dirty commits 2023-05-27 08:49:16 -07:00
prompts.py updated add prompt 2023-05-27 08:42:03 -07:00
repomap.py enable ctags if present 2023-05-26 16:03:24 -07:00
utils.py Refactor show_messages function to accept an optional title parameter and remove unused code. 2023-05-19 10:57:24 -07:00