21020: Remove arvados.commands._util.make_home_conf_dir
[arvados.git] / sdk / python / tests / fed-migrate / cwlex.cwl
1 #!/usr/bin/env cwl-runner
2 arguments:
3   - cwlex
4   - '$(inputs.inp ? inputs.inp.path : inputs.inpdir.path+''/''+inputs.inpfile)'
5 class: CommandLineTool
6 cwlVersion: v1.0
7 id: '#main'
8 inputs:
9   - id: inp
10     type:
11       - 'null'
12       - File
13   - id: inpdir
14     type:
15       - 'null'
16       - Directory
17   - id: inpfile
18     type:
19       - 'null'
20       - string
21   - id: outname
22     type:
23       - 'null'
24       - string
25 outputs:
26   - id: converted
27     outputBinding:
28       glob: $(outname(inputs))
29     type: File
30 requirements:
31   - class: DockerRequirement
32     dockerPull: commonworkflowlanguage/cwlex
33   - class: InlineJavascriptRequirement
34     expressionLib:
35       - |
36
37         function outname(inputs) {
38           return inputs.outname ? inputs.outname : (inputs.inp ? inputs.inp.nameroot+'.cwl' : inputs.inpfile.replace(/(.*).cwlex/, '$1.cwl'));
39         }
40 stdout: $(outname(inputs))
41