From a389e7f386995731b8321a1511c6ed2cadbbc1ac Mon Sep 17 00:00:00 2001 From: DongzeHe Date: Sat, 15 Apr 2023 14:39:59 -0400 Subject: [PATCH] fix: improve workflow list and add --ext-codes flag to workflow run --- docs/source/workflow-run.rst | 22 ++++++++++++--------- src/main.rs | 6 ++++-- src/simpleaf_commands.rs | 14 +++++++++++-- src/simpleaf_commands/workflow.rs | 19 ++++++++++++++---- src/utils/jrsonnet_main.rs | 33 +++++++++++++++++++++---------- src/utils/workflow_utils.rs | 22 ++++++++++++++------- 6 files changed, 82 insertions(+), 34 deletions(-) diff --git a/docs/source/workflow-run.rst b/docs/source/workflow-run.rst index bb7b1c9..93ac618 100644 --- a/docs/source/workflow-run.rst +++ b/docs/source/workflow-run.rst @@ -27,7 +27,7 @@ Workflow Output * ``simpleaf_workflow_log.json``: This file records the meta and logging information of the workflow execution. For example, the runtime of each executed command and the ``Step`` of the start and terminating command. If ``--resume`` is set, _simpleaf_ will try to find this file in the provided output directory to decide which step(command) to start. * ``workflow_execution_log.json``: This file is a modified version of the workflow manifest JSON discussed above. The only modification is that in this file, the ``Active`` of the successfully invoked commands (return code 0) becomes `false`. -The results generated by successfully invoked commands might or might not be exported to the output directory specified in ``--output``, as the output directory of each invoked command is defined in the workflow template passed to ``--config-file``, rather than by ``simpleaf workflow``. Most of the workflow templates developed by the simpleaf team will store all commands' results to the output directory passed to ``--output`` if no output directory is provided in the template. +The results generated by successfully invoked commands might or might not be exported to the output directory specified in ``--output``, as the output directory of each invoked command is defined in the workflow template passed to ``--template``, rather than by ``simpleaf workflow``. Most of the workflow templates developed by the simpleaf team will store all commands' results to the output directory passed to ``--output`` if no output directory is provided in the template. Full Usage ^^^^^^^^^^ @@ -36,30 +36,34 @@ The relevant options (which you can obtain by running ``simpleaf workflow run -h .. code-block:: console - Parse an instantiated workflow template and execute the corresponding commands + Parse an instantiated workflow template and invoke the workflow commands Usage: simpleaf workflow run [OPTIONS] --template