This is an automated email from the ASF dual-hosted git repository. vatsrahul1001 pushed a commit to branch v3-3-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit e9eda507cc871cee55c1c3fe462bf678e7b06ebf Author: Henry Chen <[email protected]> AuthorDate: Fri Jul 3 00:26:01 2026 +0800 [v3-3-test] [AIP-94] Mark config CLI commands as migrated to airflowctl (#68958) (#69258) Under AIP-94 the remote config CLI commands are frozen so new development goes to airflowctl. Following the marker-only direction from #68726 , record their airflowctl counterparts for maintainers without emitting any user-facing deprecation warning. (cherry picked from commit 6571dce244edbfc7560474cfc97e9b21e514427b) Co-authored-by: PoAn Yang <[email protected]> --- airflow-core/src/airflow/cli/commands/config_command.py | 3 +++ .../tests/unit/cli/commands/test_command_deprecations.py | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/airflow-core/src/airflow/cli/commands/config_command.py b/airflow-core/src/airflow/cli/commands/config_command.py index 21f1dcfc4a9..548a2a21e05 100644 --- a/airflow-core/src/airflow/cli/commands/config_command.py +++ b/airflow-core/src/airflow/cli/commands/config_command.py @@ -28,6 +28,7 @@ import pygments from pygments.lexers.configs import IniLexer from airflow.cli.simple_table import AirflowConsole +from airflow.cli.utils import deprecated_for_airflowctl from airflow.configuration import AIRFLOW_CONFIG, ConfigModifications, conf from airflow.exceptions import AirflowConfigException from airflow.utils.cli import should_use_colors @@ -35,6 +36,7 @@ from airflow.utils.code_utils import get_terminal_formatter from airflow.utils.providers_configuration_loader import providers_configuration_loaded +@deprecated_for_airflowctl("airflowctl config list") @providers_configuration_loaded def show_config(args): """Show current application configuration.""" @@ -63,6 +65,7 @@ def show_config(args): print(code) +@deprecated_for_airflowctl("airflowctl config get") @providers_configuration_loaded def get_value(args): """Get one value from configuration.""" diff --git a/airflow-core/tests/unit/cli/commands/test_command_deprecations.py b/airflow-core/tests/unit/cli/commands/test_command_deprecations.py index 3f082c48b47..bf9c181779c 100644 --- a/airflow-core/tests/unit/cli/commands/test_command_deprecations.py +++ b/airflow-core/tests/unit/cli/commands/test_command_deprecations.py @@ -30,7 +30,13 @@ from __future__ import annotations import pytest -from airflow.cli.commands import asset_command, dag_command, pool_command, provider_command +from airflow.cli.commands import ( + asset_command, + config_command, + dag_command, + pool_command, + provider_command, +) # (command callable, expected airflowctl replacement recorded by the decorator) MIGRATED_CLI_COMMANDS = [ @@ -45,6 +51,8 @@ MIGRATED_CLI_COMMANDS = [ (asset_command.asset_materialize, "airflowctl assets materialize"), (provider_command.provider_get, "airflowctl providers get"), (provider_command.providers_list, "airflowctl providers list"), + (config_command.get_value, "airflowctl config get"), + (config_command.show_config, "airflowctl config list"), ]
