From c9282aac345bdd4381e95573fe549b7273a9ab77 Mon Sep 17 00:00:00 2001 From: Henry Chen Date: Sun, 14 Jun 2026 11:28:00 +0800 Subject: [PATCH] Mark dags details for airflowctl The airflowctl migration direction keeps the existing airflow CLI behavior unchanged and only records commands that should no longer receive new development. --- airflow-core/src/airflow/cli/commands/dag_command.py | 1 + .../tests/unit/cli/commands/test_command_deprecations.py | 1 + 2 files changed, 2 insertions(+) diff --git a/airflow-core/src/airflow/cli/commands/dag_command.py b/airflow-core/src/airflow/cli/commands/dag_command.py index 756048af14d5e..6a5b9b3a7cffc 100644 --- a/airflow-core/src/airflow/cli/commands/dag_command.py +++ b/airflow-core/src/airflow/cli/commands/dag_command.py @@ -614,6 +614,7 @@ def filter_dags_by_bundle(dags: Iterable[DAG], bundle_names: list[str] | None) - ) +@deprecated_for_airflowctl("airflowctl dags get-details") @cli_utils.action_cli @suppress_logs_and_warning @providers_configuration_loaded 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 9300219fe5a1e..52e8a924c0adf 100644 --- a/airflow-core/tests/unit/cli/commands/test_command_deprecations.py +++ b/airflow-core/tests/unit/cli/commands/test_command_deprecations.py @@ -36,6 +36,7 @@ MIGRATED_CLI_COMMANDS = [ (dag_command.dag_trigger, "airflowctl dags trigger"), (dag_command.dag_delete, "airflowctl dags delete"), + (dag_command.dag_details, "airflowctl dags get-details"), (pool_command.pool_list, "airflowctl pools list"), (pool_command.pool_get, "airflowctl pools get"), (pool_command.pool_set, "airflowctl pools create"),