Skip to content

Commit

Permalink
NO_COLOR support (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
danofsteel32 authored Nov 27, 2023
1 parent 238577f commit 6c756ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions autochain/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@


def print_with_color(text: str, color: str):
print(color + text)
print(Style.RESET_ALL)
if os.getenv("NO_COLOR"):
print(text)
else:
print(color + text)
print(Style.RESET_ALL)


def get_from_dict_or_env(
Expand Down

0 comments on commit 6c756ee

Please sign in to comment.