File: wc3-tool_v1_1.cwl

package info (click to toggle)
cwl-utils 0.22-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,788 kB
  • sloc: python: 52,119; makefile: 146; javascript: 85; sh: 6
file content (24 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.1

requirements:
  - class: InlineJavascriptRequirement

inputs:
    file1:
      type: File[]
      inputBinding: {}
outputs:
    output:
      type: int
      outputBinding:
        glob: output.txt
        loadContents: true
        outputEval: |
              ${
                var s = self[0].contents.split(/\r?\n/);
                return parseInt(s[s.length-2]);
              }
stdout: output.txt
baseCommand: wc