From fbcbcf7fd4396bbe8515f1d5532c0c31ff37ecca Mon Sep 17 00:00:00 2001 From: Henry Chen Date: Wed, 8 Jul 2026 23:36:29 +0800 Subject: [PATCH] [v3-3-test] Mark airflow dags list as migrated to airflowctl (#68444) (cherry picked from commit 3bb4fdb41f79e014587406d1521cd905b506454e) Co-authored-by: Henry Chen --- 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 ec5b62ca1d3f4..0ba3ebd637418 100644 --- a/airflow-core/src/airflow/cli/commands/dag_command.py +++ b/airflow-core/src/airflow/cli/commands/dag_command.py @@ -528,6 +528,7 @@ def iter_next_dagrun_info() -> Iterator[DagRunInfo | None]: print(value) +@deprecated_for_airflowctl("airflowctl dags list") @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 0308e5f7230ed..bdd8ef16448a1 100644 --- a/airflow-core/tests/unit/cli/commands/test_command_deprecations.py +++ b/airflow-core/tests/unit/cli/commands/test_command_deprecations.py @@ -50,6 +50,7 @@ (connection_command.create_default_connections, "airflowctl connections create-defaults"), (dag_command.dag_trigger, "airflowctl dags trigger"), (dag_command.dag_delete, "airflowctl dags delete"), + (dag_command.dag_list_dags, "airflowctl dags list"), (dag_command.dag_details, "airflowctl dags get-details"), (dag_command.dag_pause, "airflowctl dags pause"), (dag_command.dag_unpause, "airflowctl dags unpause"),