project_release.tui.select_remote

project_release.tui.select_remote(repo: Repo, remote_name: str | None) Remote | None[source]

Select the remote to use.

Parameters:
  • repo – The current git repository.

  • remote_name – The user-specified remote name.

Returns:

The selected remote or None if not available.

Return type:

git.Remote or None

Raises:

SystemExit – If the specified remote is invalid.