Skip to content

aliases

Utilities for handling command aliases.

Classes

AliasedGroup

Bases: RichGroup

This following example implements a subclass of Group that accepts a prefix for a command.

If there were a command called push, it would accept pus as an alias (so long as it was unique)

Functions

get_command
get_command(
    ctx: Context, cmd_name: str
) -> Optional[click.Command]

Given a context and a command name, this returns a Command object if it exists or returns None.

resolve_command
resolve_command(ctx: Context, args: List[str]) -> tuple

Find the command and make sure the full command name is returned.

Functions