mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
fix: Handle NO_COLOR environment variable for disabling colored output
This commit is contained in:
parent
c79db2581b
commit
3da15bfd19
1 changed files with 1 additions and 0 deletions
|
@ -253,6 +253,7 @@ class InputOutput:
|
||||||
self.notifications_command = self.get_default_notification_command()
|
self.notifications_command = self.get_default_notification_command()
|
||||||
else:
|
else:
|
||||||
self.notifications_command = notifications_command
|
self.notifications_command = notifications_command
|
||||||
|
|
||||||
no_color = os.environ.get("NO_COLOR")
|
no_color = os.environ.get("NO_COLOR")
|
||||||
if no_color is not None and no_color != "":
|
if no_color is not None and no_color != "":
|
||||||
pretty = False
|
pretty = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue