This is an automated email from the ASF dual-hosted git repository.
henry3260 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 98f89a04976 Mark dags details for airflowctl (#68529)
98f89a04976 is described below
commit 98f89a0497674d07281b535db3b6c90e77f56bbd
Author: Henry Chen <[email protected]>
AuthorDate: Thu Jul 2 03:39:54 2026 +0800
Mark dags details for airflowctl (#68529)
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 +
airflow-core/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 756048af14d..6a5b9b3a7cf 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 dag_list_dags(args, *, session: Session = NEW_SESSION)
-> 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 28cf70d70ab..e6212d31a7f 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 @@ from airflow.cli.commands import asset_command, dag_command,
pool_command, varia
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"),