Added custom print functions for cli
This commit is contained in:
parent
cafccfc1be
commit
d8ac2ffce4
22
hackathon/cli.py
Normal file
22
hackathon/cli.py
Normal 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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user