httk.serve.web.cli

The httk serve web command: serve, validate, and list static widgets.

Classes

CLIContextLike

The minimal root-command context consumed by command().

Functions

build_parser(→ argparse.ArgumentParser)

Build the public httk serve web argument parser.

command(→ int)

Dispatch the command registered by httk.registry.cli.serve.

reload_app()

Uvicorn reload factory configured by the process-level reload dispatcher.

Module Contents

class httk.serve.web.cli.CLIContextLike[source]

Bases: Protocol

The minimal root-command context consumed by command().

property program: str[source]
property cwd: pathlib.Path[source]
httk.serve.web.cli.build_parser(program: str) argparse.ArgumentParser[source]

Build the public httk serve web argument parser.

httk.serve.web.cli.command(argv: collections.abc.Sequence[str], context: CLIContextLike) int[source]

Dispatch the command registered by httk.registry.cli.serve.

httk.serve.web.cli.reload_app()[source]

Uvicorn reload factory configured by the process-level reload dispatcher.