mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
Adding printer logic
This commit is contained in:
9
src/crewai/utilities/printer.py
Normal file
9
src/crewai/utilities/printer.py
Normal file
@@ -0,0 +1,9 @@
|
||||
class Printer:
|
||||
def print(self, content: str, color: str):
|
||||
if color == "yellow":
|
||||
self._print_yellow(content)
|
||||
else:
|
||||
print(content)
|
||||
|
||||
def _print_yellow(self, content):
|
||||
print("\033[93m {}\033[00m".format(content))
|
||||
Reference in New Issue
Block a user