southwark.click

Extensions to click.

New in version 0.5.0.

Functions:

commit_message_option(default)

Decorator to add the -m / --message option to a click command.

commit_option(default)

Decorator to add the --commit / --no-commit option to a click command.

commit_message_option(default)[source]

Decorator to add the -m / --message option to a click command.

New in version 0.5.0.

Parameters

default (str) – The default commit message.

Return type

Callable

commit_option(default)[source]

Decorator to add the --commit / --no-commit option to a click command.

New in version 0.5.0.

Parameters

default (Optional[bool]) – Whether to commit automatically.

  • None – Ask first

  • True – Commit automatically

  • False – Don’t commit

Return type

Callable