Skip to content

Commit

Permalink
fix: support module_config in run command
Browse files Browse the repository at this point in the history
  • Loading branch information
makkus committed Jun 16, 2021
1 parent 1e7a9bb commit d48d66b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Changelog

## Version 0.0.4 (Upcoming)
## Version 0.0.5 (Upcoming)

## Version 0.0.4

- refactoring of most modules names, mostly centered around the name of a modules 'main' type now

## Version 0.0.3

- new way of discovering modules and pipelines -- still to be properly documented
- new way of discovering modules and pipelines -- https://dharpa.org/kiara/development/module_discovery/
- inital support for persisting values via the *kiara* data store
- module namespaces: modules type names are now namespaces strings

Expand Down
7 changes: 5 additions & 2 deletions src/kiara/interfaces/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ async def run(ctx, module, inputs, module_config, output, explain, save, id):
"""Execute a workflow run."""

if module_config:
raise NotImplementedError()
module_config = dict_from_cli_args(*module_config)

kiara_obj: Kiara = ctx.obj["kiara"]

Expand Down Expand Up @@ -385,7 +385,10 @@ async def run(ctx, module, inputs, module_config, output, explain, save, id):
workflow_id = f"{module_name}_0"

workflow = kiara_obj.create_workflow(
module_name, workflow_id=workflow_id, controller=controller
module_name,
module_config=module_config,
workflow_id=workflow_id,
controller=controller,
)

if save:
Expand Down

0 comments on commit d48d66b

Please sign in to comment.