Hi,
I have a tool with one argument like this:
inputs:
- id: output_dir
type: Directory
inputBinding:
position: 2
prefix: '-o'
label: Output dir.
doc: Output directory where artifacts will be extracted.
I have tried to follow the instructions in the “User manual” for “Staging input Files” but I have been unsuccessfully so far:
requirements:
- class: InitialWorkDirRequirement
listing:
- entryname: $(inputs.output_dir)
writable: true
I get this when I execute it:
../playground/CWL/output/local/astrolabe/2019-08-12-15-27-48/app.cwl:1:1: Object
`../playground/CWL/output/local/astrolabe/2019-08-12-15-27-48/app.cwl#astrolabe`
is not valid because
tried
`CommandLineTool` but
../playground/CWL/output/local/astrolabe/2019-08-12-15-27-48/app.cwl:62:5: the
`requirements`
field is not valid
because
tried array of
<InlineJavascriptRequirement
or SchemaDefRequirement
or DockerRequirement or
SoftwareRequirement or
InitialWorkDirRequirement
or EnvVarRequirement or
ShellCommandRequirement
or ResourceRequirement
or
SubworkflowFeatureRequirement
or
ScatterFeatureRequirement
or
MultipleInputFeatureRequirement
or
StepInputExpressionRequirement>
but
../playground/CWL/output/local/astrolabe/2019-08-12-15-27-48/app.cwl:72:9: item is
invalid because
../playground/CWL/output/local/astrolabe/2019-08-12-15-27-48/app.cwl:74:13: the
`listing` field is
not valid because
tried array
of <File or Directory
or Dirent or string or
Expression> but
../playground/CWL/output/local/astrolabe/2019-08-12-15-27-48/app.cwl:75:17: item
is invalid because
- tried
File but
Missing 'class' field
- tried
Directory but
Missing 'class' field
- tried
Dirent but
missing required field
`entry`e[0m
Any hints?