updates alert function for cli

- alert correctly collects title from server
- alert now posts any new incomming messages
  to the commandline in form of a dict
This commit is contained in:
2022-01-17 15:00:47 +01:00
parent bfd30324e1
commit 1825e3109c
3 changed files with 8 additions and 8 deletions

View File

@ -6,8 +6,8 @@ import typer
def default(
message_arg:Optional[str] = typer.Argument(None, help="The message to be bumped"),
message:Optional[str] = typer.Option(None, help="The message to be bumped"),
reset:bool = typer.Option(False, help="remove all senders"),
alert:Optional[str] = typer.Option(None, help="check continuously for new messages"),
reset:Optional[bool] = typer.Option(False, help="remove all senders"),
alert:Optional[bool] = typer.Option(False, help="check continuously for new messages"),
secret:Optional[str] = typer.Option(None, help="change the sender and e2e keys")):
bp = bump.Bump()
if message_arg is not None:
@ -19,7 +19,7 @@ def default(
elif reset:
delete_senders()
elif alert is not None:
alert()
alert_process()
else:
info()
@ -27,7 +27,7 @@ def delete_senders():
bp = bump.Bump()
bp.delete_senders()
def alert():
def alert_process():
bp = bump.Bump()
bp.alert()