Added custom print functions for cli

This commit is contained in:
DJE98 2023-09-30 15:52:10 +02:00
parent cafccfc1be
commit d8ac2ffce4

22
hackathon/cli.py Normal file
View File

@ -0,0 +1,22 @@
def print_line():
print("-----------------------")
def print_emotions(emotions):
print(f"{len(emotions)} Persons with the following emotions: ")
print(" ".join(emotions))
print_line()
def print_connect(address=None):
if address is None:
print(f"Connected")
else:
print(f"Connected with: {address}")
print_line()
def print_disconnect(address=None):
if address is None:
print(f"Disconnected")
else:
print(f"Disconnected from: {address}")
print_line()