Example #1
0
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}
Example #2
0
 def callback(
     ctx: click.Context,
     repository_ctx: PulpRepositoryContext,
 ) -> None:
     ctx.obj = repository_ctx.get_version_context()