Mercurial > repos > guerler > springsuite
comparison planemo/lib/python3.7/site-packages/cwltool/tests/wf/echo.cwl @ 0:d30785e31577 draft
"planemo upload commit 6eee67778febed82ddd413c3ca40b3183a3898f1"
author | guerler |
---|---|
date | Fri, 31 Jul 2020 00:18:57 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d30785e31577 |
---|---|
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)] |