Skip to main content

infrahub_sdk.ctl.repository

Functions

get_repository_config

get_repository_config(repo_config_file: Path) -> InfrahubRepositoryConfig

load_repository_config_file

load_repository_config_file(repo_config_file: Path) -> dict

callback

callback() -> None

Manage the repositories in a remote Infrahub instance.

List, create, delete ..

add

add(name: str, location: str, description: str = '', username: Optional[str] = None, password: str = '', ref: str = '', read_only: bool = False, debug: bool = False, _: str = CONFIG_PARAM) -> None

Add a new repository.

list

list(branch: Optional[str] = typer.Option(None, help='Branch on which to list repositories.'), debug: bool = False, _: str = CONFIG_PARAM) -> None