potiuk commented on code in PR #54702:
URL: https://github.com/apache/airflow/pull/54702#discussion_r2287993108
##########
airflow-core/src/airflow/cli/cli_config.py:
##########
@@ -988,6 +994,12 @@ class GroupCommand(NamedTuple):
func=lazy_load_command("airflow.cli.commands.dag_command.dag_details"),
args=(ARG_DAG_ID, ARG_OUTPUT, ARG_VERBOSE),
),
+ ActionCommand(
+ name="docs",
+ help="Show DAG documentation (__doc_md__) in markdown format",
+ func=lazy_load_command("airflow.cli.commands.dag_command.dag_docs"),
+ args=(ARG_DAG_ID_OPT, ARG_SUBDIR, ARG_OUTPUT_FILE, ARG_VERBOSE),
Review Comment:
ARG_SUBDIR is not imported:
```python
uv run airflow dag doc --help
....
Traceback (most recent call last):
File "/home/jarek/code/airflow/.venv/bin/airflow", line 4, in <module>
from airflow.__main__ import main
File "/home/jarek/code/airflow/airflow-core/src/airflow/__main__.py", line
37, in <module>
from airflow.cli import cli_parser
File
"/home/jarek/code/airflow/airflow-core/src/airflow/cli/cli_parser.py", line 40,
in <module>
from airflow.cli.cli_config import (
File
"/home/jarek/code/airflow/airflow-core/src/airflow/cli/cli_config.py", line
1001, in <module>
args=(ARG_DAG_ID_OPT, ARG_SUBDIR, ARG_OUTPUT_FILE, ARG_VERBOSE),
^^^^^^^^^^
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]