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