semantic_release.cli.commands.main module

class semantic_release.cli.commands.main.Cli(name: str | None = None, invoke_without_command: bool = False, no_args_is_help: bool | None = None, subcommand_metavar: str | None = None, chain: bool = False, result_callback: Callable[[...], Any] | None = None, **attrs: Any)[source]

Bases: MultiCommand

Root MultiCommand for the semantic-release CLI

class SubCmds(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

Subcommand import definitions

CHANGELOG = 'semantic_release.cli.commands.changelog'
GENERATE_CONFIG = 'semantic_release.cli.commands.generate_config'
PUBLISH = 'semantic_release.cli.commands.publish'
VERSION = 'semantic_release.cli.commands.version'
get_command(_ctx: Context, name: str) Command | None[source]

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

list_commands(_ctx: Context) list[str][source]

Returns a list of subcommand names in the order they should appear.