mafw.devtools.cli.registry_options

Shared Click options and configuration for GitLab registry command groups.

author:

Bulgheroni Antonio (antonio.bulgheroni@ec.europa.eu)

Functions

build_gitlab_registry_configuration(ctx)

Build the registry configuration and expose validation errors as Click errors.

configure_gitlab_registry_context(ctx, ...)

Store shared registry options in the current Click context.

gitlab_registry_options(function)

Add the standard GitLab API URL, project ID, and token options.

mafw.devtools.cli.registry_options.build_gitlab_registry_configuration(ctx: Context) → GitlabAPIConfiguration[source]

Build the registry configuration and expose validation errors as Click errors.

mafw.devtools.cli.registry_options.configure_gitlab_registry_context(ctx: Context, api_url: str | None, project_id: int | None, token: str | None) → None[source]

Store shared registry options in the current Click context.

mafw.devtools.cli.registry_options.gitlab_registry_options(function: Callable[[...], Any]) → Callable[[...], Any][source]

Add the standard GitLab API URL, project ID, and token options.