cwl_utils/testdata/wc3-tool_v1_0.cwl
raw| 1 | #!/usr/bin/env cwl-runner |
| 2 | class: CommandLineTool |
| 3 | cwlVersion: v1.0 |
| 4 | |
| 5 | requirements: |
| 6 | - class: InlineJavascriptRequirement |
| 7 | hints: |
| 8 | ResourceRequirement: |
| 9 | ramMin: 8 |
| 10 | |
| 11 | inputs: |
| 12 | file1: |
| 13 | type: File[] |
| 14 | inputBinding: {} |
| 15 | outputs: |
| 16 | output: |
| 17 | type: int |
| 18 | outputBinding: |
| 19 | glob: output.txt |
| 20 | loadContents: true |
| 21 | outputEval: | |
| 22 | ${ |
| 23 | var s = self[0].contents.split(/\r?\n/); |
| 24 | return parseInt(s[s.length-2]); |
| 25 | } |
| 26 | stdout: output.txt |