comparison env/lib/python3.7/site-packages/cwltool/tests/wf/echo.cwl @ 0:26e78fe6e8c4 draft

"planemo upload commit c699937486c35866861690329de38ec1a5d9f783"
author shellac
date Sat, 02 May 2020 07:14:21 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:26e78fe6e8c4
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)]