Skip to content

Commit

Permalink
feat(cli): add run workflow command
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Jun 27, 2023
1 parent 5d6a1bb commit 7035e1d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/hyfi/__cli__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ def run_task(**args):
HyFI.run_task(task, project=project)


def run_workflow(**args):
if "workflow" not in args:
raise ValueError("No workflow configuration found")
workflow = HyFI.workflow_config(**args["workflow"])
HyFI.run_workflow(workflow)


def cli_main(cfg: DictConfig) -> None:
"""
Main function for the command line interface.
Expand Down

0 comments on commit 7035e1d

Please sign in to comment.