27 lines
337 B
Python
27 lines
337 B
Python
import asyncio
|
|
|
|
import typer
|
|
|
|
from payphone import tasks
|
|
|
|
|
|
app = typer.Typer(name="Tasks")
|
|
|
|
|
|
@app.command()
|
|
def connect() -> None:
|
|
"""Connect to other people."""
|
|
|
|
asyncio.run(tasks.connect.main())
|
|
|
|
|
|
@app.command()
|
|
def expire():
|
|
"""Expire calls."""
|
|
|
|
asyncio.run(tasks.expire.main())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app()
|