Skip to content
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
fbbeba8
added audit-logs.rst
rohan472000 Apr 5, 2023
80631f8
addressing issue "airflow dags list-jobs missing state metavar and ch…
rohan472000 May 16, 2023
a432b76
Merge branch 'main' into rohan-fix
rohan472000 May 16, 2023
820efdf
addressing issue "airflow dags list-jobs missing state metavar and ch…
rohan472000 May 16, 2023
ba1615b
addressing issue "airflow dags list-jobs missing state metavar and ch…
rohan472000 May 16, 2023
5c0a0b2
Delete audit-logs.rst
rohan472000 May 16, 2023
82e9d45
Merge branch 'main' into rohan-fix
rohan472000 May 16, 2023
d633f40
updated metavar and choices
rohan472000 May 16, 2023
b6591ed
Merge remote-tracking branch 'origin/rohan-fix' into rohan-fix
rohan472000 May 16, 2023
2e3d0da
updated metavar and choices
rohan472000 May 16, 2023
b27101b
Merge branch 'main' into rohan-fix
rohan472000 May 16, 2023
3d9d54f
Merge branch 'main' into rohan-fix
rohan472000 May 16, 2023
53aed55
Update airflow/cli/cli_config.py
rohan472000 May 17, 2023
6f12bb4
Delete cli_parser.py
rohan472000 May 17, 2023
028736e
Merge branch 'main' into rohan-fix
rohan472000 May 17, 2023
c3a353c
added `cli_parser.py` and updated `cli_config.py`
rohan472000 May 17, 2023
cd0a0dc
Merge branch 'main' into rohan-fix
rohan472000 May 18, 2023
356d9bc
revert whitespaces changes and update metavar
hussein-awala May 18, 2023
15e864f
Merge branch 'main' into rohan-fix
rohan472000 May 18, 2023
9479c3e
Update airflow/cli/cli_config.py
rohan472000 May 18, 2023
80de9d7
Merge branch 'main' into rohan-fix
rohan472000 May 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion airflow/cli/cli_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
from airflow.settings import _ENABLE_AIP_44
from airflow.utils.cli import ColorMode
from airflow.utils.module_loading import import_string
from airflow.utils.state import DagRunState
from airflow.utils.timezone import parse as parsedate

BUILD_DOCS = "BUILDING_AIRFLOW_DOCS" in os.environ
Expand Down Expand Up @@ -277,7 +278,13 @@ def string_lower_type(val):
ARG_NO_BACKFILL = Arg(
("--no-backfill",), help="filter all the backfill dagruns given the dag id", action="store_true"
)
ARG_STATE = Arg(("--state",), help="Only list the dag runs corresponding to the state")
dagrun_states = tuple(state.value for state in DagRunState)
ARG_STATE = Arg(
("--state",),
help="Only list the dag runs corresponding to the state",
metavar=", ".join(dagrun_states),
choices=dagrun_states,
)

# list_jobs
ARG_DAG_ID_OPT = Arg(("-d", "--dag-id"), help="The id of the dag")
Expand Down