| 1 |
#!/usr/bin/env cwl-runner |
| 2 |
cwlVersion: v1.0 |
| 3 |
$namespaces: |
| 4 |
cwltool: "http://commonwl.org/cwltool#" |
| 5 |
class: cwltool:ProcessGenerator |
| 6 |
inputs: |
| 7 |
script: string |
| 8 |
dir: Directory |
| 9 |
outputs: {} |
| 10 |
run: |
| 11 |
class: CommandLineTool |
| 12 |
inputs: |
| 13 |
script: string |
| 14 |
dir: Directory |
| 15 |
outputs: |
| 16 |
runProcess: |
| 17 |
type: File |
| 18 |
outputBinding: |
| 19 |
glob: main.cwl |
| 20 |
requirements: |
| 21 |
InlineJavascriptRequirement: {} |
| 22 |
cwltool:LoadListingRequirement: |
| 23 |
loadListing: shallow_listing |
| 24 |
InitialWorkDirRequirement: |
| 25 |
listing: | |
| 26 |
${ |
| 27 |
var v = inputs.dir.listing; |
| 28 |
v.push({entryname: "inp.py", entry: inputs.script}); |
| 29 |
return v; |
| 30 |
} |
| 31 |
arguments: [python3, inp.py] |
| 32 |
stdout: main.cwl |