Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/cwltool/tests/wf/echo.cwl @ 2:6af9afd405e9 draft
"planemo upload commit 0a63dd5f4d38a1f6944587f52a8cd79874177fc1"
author | shellac |
---|---|
date | Thu, 14 May 2020 14:56:58 -0400 |
parents | 26e78fe6e8c4 |
children |
comparison
equal
deleted
inserted
replaced
1:75ca89e9b81c | 2:6af9afd405e9 |
---|---|
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)] |