httk.core.docs.cli

The httk docs command-line adapter over the documentation library.

Functions

build_parser(program, project_dir)

Build the httk docs parser with a project-directory default.

command(argv, context)

Handle the registered top-level docs command.

Module Contents

httk.core.docs.cli.build_parser(program, project_dir)[source]

Build the httk docs parser with a project-directory default.

Parameters:
  • program (str) – Program name displayed by the parser.

  • project_dir (pathlib.Path) – Default project directory for project-aware commands.

Returns:

Configured command-line parser.

Return type:

argparse.ArgumentParser

httk.core.docs.cli.command(argv, context)[source]

Handle the registered top-level docs command.

Parameters:
Returns:

Process-style exit status.

Return type:

int