josh-fell commented on code in PR #30432:
URL: https://github.com/apache/airflow/pull/30432#discussion_r1156659948
##########
airflow/cli/cli_config.py:
##########
@@ -1100,6 +1100,12 @@ class GroupCommand(NamedTuple):
CLICommand = Union[ActionCommand, GroupCommand]
DAGS_COMMANDS = (
+ ActionCommand(
+ name="details",
+ help="Get DAG details given a DAG id",
+ func=lazy_load_command("airflow.cli.commands.dag_command.dag_details"),
+ args=(ARG_DAG_ID, ARG_SUBDIR, ARG_OUTPUT, ARG_VERBOSE),
Review Comment:
Is `ARG_SUBDIR` needed for this command? Doesn't seem like it's used, or if
the intent is to be able to also specify the subdirectory to find a DAG,
`airflow.utils.cli.get_dags()` should be used in the command. Seems like the
intent to require a single DAG ID though.
--
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]