Skip to content

bumpversion.aliases ​

Utilities for handling command aliases.

AliasedGroup ​

python
class AliasedGroup()

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)

get_command ​

python
def 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 ​

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

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