Buckets:

download
raw
1.5 kB
"""hof CLI entry point."""
from __future__ import annotations
import click
import typer
from hof.cli.commands import add as add_cmd
from hof.cli.commands import build, cron_cmd, db, dev, flow, fn, new, sandbox, table
_typer_app = typer.Typer(
name="hof",
help="hof-engine: Full-stack Python + React framework.",
no_args_is_help=True,
)
_typer_app.add_typer(build.app, name="build", help="Build the UI for production.")
_typer_app.add_typer(dev.app, name="dev", help="Start the development server.")
_typer_app.add_typer(flow.app, name="flow", help="Manage and run flows.")
_typer_app.add_typer(table.app, name="table", help="Interact with tables.")
_typer_app.add_typer(db.app, name="db", help="Database migration commands.")
_typer_app.add_typer(cron_cmd.app, name="cron", help="Manage cron jobs.")
_typer_app.add_typer(new.app, name="new", help="Scaffold new components.")
_typer_app.add_typer(add_cmd.app, name="add", help="Add modules from hof-components.")
_typer_app.add_typer(sandbox.app, name="sandbox", help="Terminal sandbox and skill CLIs.")
@_typer_app.callback(invoke_without_command=True)
def main(
ctx: typer.Context,
version: bool = typer.Option(False, "--version", "-v", help="Show version."),
) -> None:
if version:
from hof import __version__
typer.echo(f"hof-engine {__version__}")
raise typer.Exit()
app: click.Group = typer.main.get_group(_typer_app)
app.add_command(fn.app, "fn")
if __name__ == "__main__":
app()

Xet Storage Details

Size:
1.5 kB
·
Xet hash:
9f11930fdfac43e9801274954a5f4bdd62e936c894568cd3a693f5c34847bcad

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.