comparison env/lib/python3.9/site-packages/cwltool/tests/wf/sorttool.cwl @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4f3585e2f14b
1 #!/usr/bin/env cwl-runner
2 # Example command line program wrapper for the Unix tool "sort"
3 # demonstrating command line flags.
4 class: CommandLineTool
5 doc: "Sort lines using the `sort` command"
6 cwlVersion: v1.0
7
8 # This example is similar to the previous one, with an additional input
9 # parameter called "reverse". It is a boolean parameter, which is
10 # intepreted as a command line flag. The value of "prefix" is used for
11 # flag to put on the command line if "reverse" is true, if "reverse" is
12 # false, no flag is added.
13 #
14 # This example also introduced the "position" field. This indicates the
15 # sorting order of items on the command line. Lower numbers are placed
16 # before higher numbers. Here, the "--reverse" flag (if present) will be
17 # added to the command line before the input file path.
18 inputs:
19 - id: reverse
20 type: boolean
21 inputBinding:
22 position: 1
23 prefix: "--reverse"
24 - id: sorted_input
25 type: File
26 inputBinding:
27 position: 2
28
29 outputs:
30 - id: sorted_output
31 type: File
32 outputBinding:
33 glob: output.txt
34
35 baseCommand: sort
36 stdout: output.txt