mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-10-22 09:53:07 +02:00
Adding printer logic
This commit is contained in:
1 parent
c226dafd0d
commit
6ea21e95b6
2 files changed
+10
No files matched your search
@@ -1,4 +1,5 @@
|
||||
from .i18n import I18N
|
||||
from .logger import Logger
|
||||
from .printer import Printer
|
||||
from .prompts import Prompts
|
||||
from .rpm_controller import RPMController
|
||||
@@ -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