14198: Add scatter-gather
[arvados.git] / sdk / cwl / tests / federation / cases / rev-input-to-output.cwl
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 cwlVersion: v1.0
6 class: CommandLineTool
7 $namespaces:
8   arv: "http://arvados.org/cwl#"
9 requirements:
10   InlineJavascriptRequirement: {}
11   arv:ClusterTarget:
12     cluster_id: $(inputs.runOnCluster)
13   ShellCommandRequirement: {}
14 inputs:
15   inp:
16     type: File
17   runOnCluster: string
18 outputs:
19   original:
20     type: File
21     outputBinding:
22       glob: $(inputs.inp.basename)
23   revhash:
24     type: stdout
25 stdout: rev-$(inputs.inp.basename)
26 arguments:
27   - shellQuote: false
28     valueFrom: |
29       ln -s $(inputs.inp.path) $(inputs.inp.basename) &&
30       rev $(inputs.inp.basename)