httk.serve.web.cli¶
The httk serve web command: serve, validate, and list static widgets.
Classes¶
The minimal root-command context consumed by |
Functions¶
|
Build the public |
|
Dispatch the command registered by |
Create the app selected by the process-level reload dispatcher. |
Module Contents¶
- class httk.serve.web.cli.CLIContextLike¶
Bases:
ProtocolThe minimal root-command context consumed by
command().- property cwd: pathlib.Path¶
Return the root command’s working directory.
- httk.serve.web.cli.build_parser(program)¶
Build the public
httk serveargument parser.- Parameters:
program (str) – Program name displayed in command-line help.
- Returns:
Configured argument parser.
- Return type:
- httk.serve.web.cli.command(argv, context)¶
Dispatch the command registered by
httk.registry.cli.serve.- Parameters:
argv (collections.abc.Sequence[str]) – Command-line arguments after the root command.
context (CLIContextLike) – Root-command program and working-directory context.
- Returns:
Process-style command status code.
- Return type:
- httk.serve.web.cli.reload_app()¶
Create the app selected by the process-level reload dispatcher.
- Returns:
Fresh application configured from reload environment variables.
- Return type: