We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 652bb16 commit 4ff40afCopy full SHA for 4ff40af
1 file changed
wfcommons/wfbench/translator/templates/cwl_templates/shell.cwl
@@ -6,12 +6,23 @@ requirements:
6
stdout: $(inputs.step_name + ".out")
7
stderr: $(inputs.step_name + ".err")
8
9
+arguments:
10
+ - position: 1
11
+ valueFrom: >
12
+ ${
13
+ var cmd = inputs.command;
14
+ if (inputs.input_files) {
15
+ for (var i = 0; i < inputs.input_files.length; i++) {
16
+ cmd = cmd.replace(new RegExp(inputs.input_files[i].basename, 'g'), inputs.input_files[i].path);
17
+ }
18
19
+ return cmd;
20
21
+ shellQuote: false
22
+
23
inputs:
24
command:
25
type: string
- inputBinding:
- position: 1
- shellQuote: false
26
input_files:
27
type: File[]?
28
output_filenames:
0 commit comments