Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/cwltool/tests/wf/echo.cwl @ 5:9b1c78e6ba9c draft default tip
"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
| author | shellac |
|---|---|
| date | Mon, 01 Jun 2020 08:59:25 -0400 |
| parents | 79f47841a781 |
| children |
comparison
equal
deleted
inserted
replaced
| 4:79f47841a781 | 5:9b1c78e6ba9c |
|---|---|
| 1 #!/usr/bin/env cwl-runner | |
| 2 class: CommandLineTool | |
| 3 cwlVersion: v1.0 | |
| 4 inputs: | |
| 5 r: string | |
| 6 script: | |
| 7 type: string | |
| 8 default: | | |
| 9 from __future__ import print_function | |
| 10 import sys | |
| 11 print(sys.argv[1]) | |
| 12 if sys.argv[1] == "2": | |
| 13 exit(1) | |
| 14 else: | |
| 15 f = open("foo"+sys.argv[1]+".txt", "wb") | |
| 16 content = sys.argv[1]+"\n" | |
| 17 f.write(content.encode('utf-8')) | |
| 18 if sys.argv[1] == "5": | |
| 19 exit(1) | |
| 20 outputs: | |
| 21 out: | |
| 22 type: File | |
| 23 outputBinding: | |
| 24 glob: foo$(inputs.r).txt | |
| 25 arguments: [python, -c, $(inputs.script), $(inputs.r)] |
