15361: Add missing test files
[arvados.git] / sdk / cwl / tests / wf / revsort / revtool.cwl
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 #
6 # Simplest example command line program wrapper for the Unix tool "rev".
7 #
8 class: CommandLineTool
9 cwlVersion: v1.0
10 doc: "Reverse each line using the `rev` command"
11
12 hints:
13   ResourceRequirement:
14     ramMin: 8
15
16 # The "inputs" array defines the structure of the input object that describes
17 # the inputs to the underlying program.  Here, there is one input field
18 # defined that will be called "input" and will contain a "File" object.
19 #
20 # The input binding indicates that the input value should be turned into a
21 # command line argument.  In this example inputBinding is an empty object,
22 # which indicates that the file name should be added to the command line at
23 # a default location.
24 inputs:
25   input:
26     type: File
27     inputBinding: {}
28
29 # The "outputs" array defines the structure of the output object that
30 # describes the outputs of the underlying program.  Here, there is one
31 # output field defined that will be called "output", must be a "File" type,
32 # and after the program executes, the output value will be the file
33 # output.txt in the designated output directory.
34 outputs:
35   output:
36     type: File
37     outputBinding:
38       glob: output.txt
39
40 # The actual program to execute.
41 baseCommand: rev
42
43 # Specify that the standard output stream must be redirected to a file called
44 # output.txt in the designated output directory.
45 stdout: output.txt