File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,15 +91,13 @@ omit = [
9191 " src/ddeutil/workflow/__about__.py" ,
9292 " src/ddeutil/workflow/__cron.py" ,
9393 " src/ddeutil/workflow/__main__.py" ,
94+ " src/ddeutil/workflow/cli.py" ,
9495 " src/ddeutil/workflow/api/__init__.py" ,
9596 " src/ddeutil/workflow/api/logs.py" ,
96- " src/ddeutil/workflow/api/utils.py" ,
9797 " src/ddeutil/workflow/api/routes/__init__.py" ,
9898 " src/ddeutil/workflow/api/routes/job.py" ,
9999 " src/ddeutil/workflow/api/routes/logs.py" ,
100- " src/ddeutil/workflow/api/routes/schedules.py" ,
101100 " src/ddeutil/workflow/api/routes/workflows.py" ,
102- " app.py" ,
103101]
104102
105103[tool .coverage .report ]
Original file line number Diff line number Diff line change 44import typer
55import uvicorn
66
7+ from .__about__ import __version__
78from .api import app as fastapp
89from .api .logs import LOGGING_CONFIG
910
@@ -20,6 +21,12 @@ def callback():
2021 typer .echo ("Start call from callback function" )
2122
2223
24+ @app .command ()
25+ def version ():
26+ """Get the ddeutil-workflow package version."""
27+ typer .echo (__version__ )
28+
29+
2330@app .command ()
2431def job (
2532 params : Annotated [str , typer .Option (help = "A job execute parameters" )],
You can’t perform that action at this time.
0 commit comments