Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/cwltool/tests/wf/echo.cwl @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
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 import sys | |
10 print(sys.argv[1]) | |
11 if sys.argv[1] == "2": | |
12 exit(1) | |
13 else: | |
14 f = open("foo"+sys.argv[1]+".txt", "wb") | |
15 content = sys.argv[1]+"\n" | |
16 f.write(content.encode('utf-8')) | |
17 if sys.argv[1] == "5": | |
18 exit(1) | |
19 outputs: | |
20 out: | |
21 type: File | |
22 outputBinding: | |
23 glob: foo$(inputs.r).txt | |
24 arguments: [python, -c, $(inputs.script), $(inputs.r)] |