Source code for gyoza.cli

"""Command-line interface for gyoza."""

import typer

from gyoza.cli.commands import server as server_commands
from gyoza.cli.commands import worker as worker_commands
from gyoza.cli.commands.build import build
from gyoza.cli.commands.deploy import deploy
from gyoza.cli.commands.run import run
from gyoza.cli.commands.run_container import run_container
from gyoza.cli.commands.version import version_cmd

app = typer.Typer(help="CLI for interacting with the Gyoza ecosystem.")

app.command("version")(version_cmd)
app.command("run")(run)
app.command("build")(build)
app.command("deploy")(deploy)
app.command("run-container")(run_container)
app.add_typer(worker_commands.app, name="worker")
app.add_typer(server_commands.app, name="server")


[docs] def main() -> None: """Run the gyoza CLI application.""" app()
if __name__ == "__main__": main()