Skip to content

Commit 9caa2cf

Browse files
authored
Merge pull request #240 from common-workflow-language/dependency_hint
Dependency hint
2 parents 972e3b7 + 6c6ab97 commit 9caa2cf

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed

draft-4/CommandLineTool.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,44 @@ $graph:
626626
Docker container.
627627
628628
629+
- type: record
630+
name: SoftwareRequirement
631+
extends: "#ProcessRequirement"
632+
doc: |
633+
Software that should be configured in the environment of the defined
634+
process.
635+
636+
While absolute portability between platforms can be achieved with container
637+
technologies like Docker, this mechanism provides an inexact and imprecise
638+
fallback. The inexact nature is due to this standard not specifying the
639+
base operating environment of the process or how the that environment is to
640+
be configured as a result of these hints. The imprecise nature of these
641+
hints is due to the `name` and `version` fields being unstructured and not
642+
namespaced. The optional `identifier` field is recommended so that users
643+
and platforms can distinguish between software that has the same name.
644+
fields:
645+
- name: spec
646+
type:
647+
type: array
648+
items: SoftwareSpec
649+
doc: "The list of software to be configured."
650+
651+
- name: SoftwareSpec
652+
type: record
653+
fields:
654+
- name: name
655+
type: string
656+
doc: "The name of the software to be configured."
657+
jsonldPredicate: "@id"
658+
- name: "version"
659+
type: string?
660+
doc: "The (optional) version of the software to configured."
661+
- name: "identifier"
662+
type: string?
663+
doc: |
664+
The (optional) identifier of the software to be configured. Should be a
665+
IRI such as an [RRID](http://www.identifiers.org/rrid/SCR_001156).
666+
Example: `http://identifiers.org/rrid/RRID:SCR_001156`
629667
630668
- name: CreateFileRequirement
631669
type: record

draft-4/conformance_test_draft-4.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060
- job: draft-4/cat-job.json
6161
tool: draft-4/cat3-tool-shortcut.cwl
6262
doc: Test command execution in Docker with stdout redirection
63+
output:
64+
output_file:
65+
class: File
66+
checksum: sha1$47a013e660d408619d894b20806b1d5086aab03b
67+
path: Any
68+
size: 13
6369

6470
- job: draft-4/cat-job.json
6571
output:
@@ -76,11 +82,23 @@
7682
job:
7783
tool: draft-4/egrep-stderr.cwl
7884
doc: Test command line with stderr redirection
85+
output:
86+
output_file:
87+
class: File
88+
checksum: sha1$cec7b8746a78c42060c96505887449bca0142976
89+
size: 84
90+
path: error.txt
7991

8092
- args: [egrep]
8193
job:
8294
tool: draft-4/egrep-stderr-shortcut.cwl
8395
doc: Test command line with stderr redirection, brief syntax
96+
output:
97+
output_file:
98+
class: File
99+
checksum: sha1$cec7b8746a78c42060c96505887449bca0142976
100+
size: 84
101+
path: Any
84102

85103
- args: [egrep]
86104
stderr: std.err

draft-4/draft-4/cat1-tool.cwl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: "Print the contents of a file to stdout using 'cat' running in a do
55
hints:
66
DockerRequirement:
77
dockerPull: debian:wheezy
8+
SoftwareRequirement:
9+
name: cat
810
inputs:
911
file1:
1012
type: File

0 commit comments

Comments
 (0)