|
|
@ -18,7 +18,10 @@
|
|
|
|
###############################################################################
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
|
|
import asyncio
|
|
|
|
import asyncio
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import typer
|
|
|
|
import typer
|
|
|
|
|
|
|
|
from notification_client.MessagePrinter import MessagePrinter
|
|
|
|
|
|
|
|
|
|
|
|
from notification_client.client import Client
|
|
|
|
from notification_client.client import Client
|
|
|
|
|
|
|
|
|
|
|
|
cli_app = typer.Typer(rich_markup_mode="rich")
|
|
|
|
cli_app = typer.Typer(rich_markup_mode="rich")
|
|
|
@ -40,5 +43,9 @@ def up(
|
|
|
|
This command [b]start[/] the [yellow b]client[/] and connects to the notification server.
|
|
|
|
This command [b]start[/] the [yellow b]client[/] and connects to the notification server.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
client = Client(ip, port)
|
|
|
|
try:
|
|
|
|
asyncio.run(client.connect())
|
|
|
|
client = Client(ip, port)
|
|
|
|
|
|
|
|
asyncio.run(client.connect())
|
|
|
|
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
|
|
|
|
MessagePrinter.bye()
|
|
|
|
|
|
|
|
sys.exit(0)
|
|
|
|