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[source]¶
Bases:
ProtocolThe minimal root-command context consumed by
command().- property cwd: pathlib.Path[source]¶
Return the root command’s working directory.
- httk.serve.web.cli.build_parser(program)[source]¶
Build the public
httk serve webargument parser.- Parameters:
program (str) – Program name displayed in command-line help.
- Returns:
Configured argument parser.
- Return type:
- httk.serve.web.cli.command(argv, context)[source]¶
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: