def version_group( ctx: click.Context, pulp_ctx: PulpContext, repository_ctx: PulpRepositoryContext, repository: Optional[str], ) -> None: ctx.obj = repository_ctx.get_version_context() if repository is not None: repository_ctx.entity = {"name": repository}
def callback( ctx: click.Context, repository_ctx: PulpRepositoryContext, ) -> None: ctx.obj = repository_ctx.get_version_context()