mirror of
https://codeberg.org/Freedium-cfd/web.git
synced 2026-03-11 09:04:37 +00:00
10 lines
327 B
Python
10 lines
327 B
Python
import asyncclick as click
|
|
|
|
|
|
@click.command()
|
|
@click.option("--host", default="0.0.0.0", help="Host address to bind to")
|
|
@click.option("--port", default=7080, type=int, help="Port to listen on")
|
|
async def cli(host: str, port: int):
|
|
from freedium_library.api.main import start_server
|
|
|
|
start_server(host=host, port=port)
|