hussein-awala commented on code in PR #30432:
URL: https://github.com/apache/airflow/pull/30432#discussion_r1156558200


##########
airflow/cli/commands/dag_command.py:
##########
@@ -343,6 +344,27 @@ def dag_list_dags(args):
     )
 
 
+@cli_utils.action_cli
+@suppress_logs_and_warning
+@provide_session
+def dag_details(args, session=NEW_SESSION):
+    """Get DAG details given a DAG id"""
+    dag = DagModel.get_dagmodel(args.dag_id, session=session)
+    if not dag:
+        raise SystemExit(f"DAG: {args.dag_id} does not exist in 'dag' table")
+    dag_detail = dag_schema.dump(dag)
+
+    if args.output == "table" or args.output == "plain":

Review Comment:
   nit
   ```suggestion
       if args.output in ["table", "plain"]:
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to