Skip to content

Commit

Permalink
serial: multi-line with block scalar folded style
Browse files Browse the repository at this point in the history
* Uses multi-line command for better readability
  (addresses reanahub/reana-workflow-engine-serial#42).
  • Loading branch information
Diego Rodriguez committed Sep 24, 2018
1 parent 7c7fd97 commit 07c8fdb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ the computational workflow steps and the expected outputs:
steps:
- environment: 'python:2.7'
commands:
- python "${helloworld}" --sleeptime ${sleeptime} --inputfile "${inputfile}" --outputfile "${outputfile}"
- >
python "${helloworld}"
--sleeptime ${sleeptime}
--inputfile "${inputfile}"
--outputfile "${outputfile}"
In case you are using CWL or Yadage workflow specifications:

Expand Down
7 changes: 6 additions & 1 deletion reana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ workflow:
steps:
- environment: 'python:2.7'
commands:
- python "${helloworld}" --sleeptime ${sleeptime} --inputfile "${inputfile}" --outputfile "${outputfile}"
- >
echo "Running ${helloworld}." &&
python "${helloworld}"
--sleeptime ${sleeptime}
--inputfile "${inputfile}"
--outputfile "${outputfile}"

0 comments on commit 07c8fdb

Please sign in to comment.