common-workflow-language / common-workflow-language/cwltool
'format' key in input YAML interpreted as file
- Dominant language
- Python
- Stars
- 376
- Forks
- 255
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 12
Description
When the input file is a YAML that contains a key named 'format', then it is interpreted as file.
## Workflow Code
Workflow, echo.cwl:
```
cwlVersion: v1.0
class: CommandLineTool
baseCommand: echo
inputs:
format:
type: string
inputBinding:
position: 1
outputs:
output: stdout
```
Input YAML, hello_world.yaml:
```
format: Hello world
```
Usage:
```
cwltool echo.cwl hello_world.yaml
```
## Expected Behavior
The output file should contain the string: 'Hello world'.
Similar to cwltool echo.cwl --format 'Hello world'
## Actual Behavior
Output file contains a path to a file: file:///path/to/working/directory/Hello world
## Your Environment
* cwltool version: 1.0.20170928192020
Contributor guide
Assessment
This issue has not been assessed yet.