File tree 2 files changed +42
-1
lines changed
2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 1143
1143
1144
1144
When a binding is part of the `CommandLineTool.arguments` field,
1145
1145
the `valueFrom` field is required.
1146
-
1146
+ - name : shellQuote
1147
+ type : ["null", boolean]
1148
+ doc : |
1149
+ If `ShellCommandRequirement` is in the requirements for the current command,
1150
+ this controls whether the value is quoted on the command line (default is true).
1151
+ Use `shellQuote: false` to inject metacharacters for operations such as pipes.
1147
1152
1148
1153
- type : record
1149
1154
name : CommandOutputBinding
2044
2049
the expression engine. The semantics of this field are defined by the
2045
2050
underlying expression engine. Intended for uses such as providing
2046
2051
function definitions that will be called from CWL expressions.
2052
+
2053
+ - type : record
2054
+ name : ShellCommandRequirement
2055
+ extends : " #ProcessRequirement"
2056
+ doc : |
2057
+ Modify the behavior of CommandLineTool to generate a single string
2058
+ containing a shell command line. Each item in the argument list must be
2059
+ joined into a string separated by single spaces and quoted to prevent
2060
+ intepretation by the shell, unless `CommandLineBinding` for that argument
2061
+ contains `shellQuote: false`. If `shellQuote: false` is specified, the
2062
+ argument is joined into the command string without quoting, which allows
2063
+ the use of shell metacharacters such as `|` for pipes.
Original file line number Diff line number Diff line change
1
+ class: CommandLineTool
2
+ description: "Reverse each line using the `rev` command then sort. "
3
+ requirements :
4
+ - class: ShellCommandRequirement
5
+ inputs :
6
+ - id : "#input"
7
+ type : File
8
+ outputs :
9
+ - id : "#output"
10
+ type : File
11
+ outputBinding :
12
+ glob : output.txt
13
+
14
+ baseCommand : []
15
+ arguments :
16
+ - rev
17
+ - valueFrom :
18
+ engine: cwl:JsonPointer
19
+ script: /job/input
20
+ - valueFrom : " | "
21
+ shellQuote : false
22
+ - sort
23
+ - valueFrom : "> output. txt"
24
+ shellQuote : false
You can’t perform that action at this time.
0 commit comments