airflow.providers.keycloak.auth_manager.cli.utils¶
Functions¶
|
Wrap CLI commands to display dry-run messages. |
|
Handle dry-run preview logic for create functions. |
Module Contents¶
- airflow.providers.keycloak.auth_manager.cli.utils.dry_run_message_wrap(func)[source]¶
Wrap CLI commands to display dry-run messages.
- airflow.providers.keycloak.auth_manager.cli.utils.dry_run_preview(preview_func)[source]¶
Handle dry-run preview logic for create functions.
When dry_run=True, executes the preview function and returns early. Otherwise, proceeds with normal execution without passing dry_run to the decorated function.
- Parameters:
preview_func (collections.abc.Callable[Ellipsis, None]) – Function to call for previewing what would be created. Should accept the same arguments as the decorated function.