Mercurial > repos > shellac > sam_consensus_v3
diff env/lib/python3.9/site-packages/cwltool/tests/wf/directory.cwl @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/env/lib/python3.9/site-packages/cwltool/tests/wf/directory.cwl Mon Mar 22 18:12:50 2021 +0000 @@ -0,0 +1,65 @@ +#!/usr/bin/env cwl-runner +cwlVersion: v1.0 +class: Workflow + +doc: > + Inspect provided directory and return filenames. + Generate a new directory and return it (including content). + +hints: + - class: DockerRequirement + dockerPull: debian:8 + +inputs: + dir: + type: Directory + +steps: + ls: + in: + dir: dir + out: + [listing] + run: + class: CommandLineTool + baseCommand: ls + inputs: + dir: + type: Directory + inputBinding: + position: 1 + outputs: + listing: + type: stdout + + generate: + in: [] + out: + [dir1] + run: + class: CommandLineTool + requirements: + - class: ShellCommandRequirement + arguments: + - shellQuote: false + valueFrom: > + pwd; + mkdir -p dir1/a/b; + echo -n a > dir1/a.txt; + echo -n b > dir1/a/b.txt; + echo -n c > dir1/a/b/c.txt; + inputs: [] + outputs: + dir1: + type: Directory + outputBinding: + glob: "dir1" + +outputs: + listing: + type: File + outputSource: ls/listing + dir1: + type: Directory + outputSource: generate/dir1 +