semantic_release.cli.commands.main module

class semantic_release.cli.commands.main.Cli(name: str | None = None, commands: MutableMapping[str, Command] | Sequence[Command] | None = None, **attrs: Any)[source]

Bases: Group

Root Group for the semantic-release CLI

class SubCmds(*values)[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, cmd_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.