hubvault.entry.dispatch

Command-line interface entry point for the hubvault package.

This module defines the main Click command group used to expose the CLI for the project, including version reporting, global repository-path selection, and help configuration. It builds user-facing metadata from the project configuration and provides a top-level command entry point.

The module contains the following main components:

Example:

>>> from hubvault.entry.dispatch import hubvaultcli
>>> # Typically invoked via a Click entry point:
>>> # python -m hubvault --help

Note

The version display is implemented via a Click option callback, which prints version information and exits the process. Runtime repo discovery is delegated to hubvault.entry.context.

hubvaultcli

hubvault.entry.dispatch.hubvaultcli(*args: t.Any, **kwargs: t.Any) t.Any

Main Click command group for the hubvault CLI.

This command group provides a common entry point for subcommands and integrates global options such as -C, --version, and help flags.

Parameters:
  • ctx (click.core.Context) – Click context for the current command invocation.

  • repo_path (str) – Optional repo path passed through -C.

Returns:

None.

Return type:

None

Example:

>>> # Typically invoked via a console entry point:
>>> # $ hubvault -C /path/to/repo status