Spaces:
Runtime error
Runtime error
"""Lilac CLI.""" | |
import click | |
from . import __version__ | |
from .server import start_server | |
def start(host: str, port: int) -> None: | |
"""Starts the Lilac web server.""" | |
start_server(host=host, port=port, open=True) | |
def version() -> None: | |
"""Prints the version of Lilac.""" | |
print(__version__) | |
def cli() -> None: | |
"""Lilac CLI.""" | |
pass | |
cli.add_command(start) | |
cli.add_command(version) | |
if __name__ == '__main__': | |
cli() | |