Merge branch 'main' from workbench2.git
[arvados.git] / sdk / cwl / tests / federation / arvboxcwl / mkdir.cwl
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 cwlVersion: v1.1
6 class: CommandLineTool
7 $namespaces:
8   arv: "http://arvados.org/cwl#"
9   cwltool: "http://commonwl.org/cwltool#"
10 inputs:
11   containers:
12     type:
13       type: array
14       items: string
15       inputBinding:
16         position: 3
17         valueFrom: |
18           ${
19           return "base/"+self;
20           }
21   arvbox_base: Directory
22 outputs:
23   arvbox_data:
24     type: Directory[]
25     outputBinding:
26       glob: |
27         ${
28         var r = [];
29         for (var i = 0; i < inputs.containers.length; i++) {
30           r.push("base/"+inputs.containers[i]);
31         }
32         return r;
33         }
34 requirements:
35   InitialWorkDirRequirement:
36     listing:
37       - entry: $(inputs.arvbox_base)
38         entryname: base
39         writable: true
40   LoadListingRequirement:
41     loadListing: no_listing
42   InlineJavascriptRequirement: {}
43   InplaceUpdateRequirement:
44     inplaceUpdate: true
45 arguments:
46   - mkdir
47   - "-p"