hubvault.entry.cli

Command-line interface assembly for the hubvault entry points.

This module composes the top-level CLI command group by applying a sequence of subcommand decorators. Each decorator registers one command family while keeping the exported top-level group stable.

The module contains the following main component:

  • cli - Preconfigured Click command group with registered subcommands

Example:

>>> from hubvault.entry.cli import cli
>>> # ``cli`` is a click.Group and can be invoked by Click's command runner.
>>> isinstance(cli.name, str)
True

Note

Subcommands are added by decorator functions that mutate the Click group in place and return it for chaining. The CLI stays on top of the public API and does not add a git workspace/index layer of its own.

cli

hubvault.entry.cli.cli: Group = <Group hubvaultcli>

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

cli

hubvault.entry.cli.cli: Group = <Group hubvaultcli>

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