Skip to content

Commit

Permalink
Merge pull request common-workflow-language#265 from common-workflow-…
Browse files Browse the repository at this point in the history
…language/optional-baseCommand

Errata: make baseCommand optional
  • Loading branch information
mr-c committed Jul 20, 2016
2 parents 64774b2 + 66046d1 commit 46ce0c3
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions v1.0/CommandLineTool.yml
Expand Up @@ -74,6 +74,12 @@ $graph:
dependencies of a tool.
* The common `description` field has been renamed to `doc`.
## Errata
Post v1.0 release changes to the spec.
* 13 July 2016: Mark `baseCommand` as optional and update descriptive text.
## Purpose
Standalone programs are a flexible and interoperable form of code reuse.
Expand Down Expand Up @@ -511,18 +517,24 @@ $graph:
type: string
- name: baseCommand
doc: |
Specifies the program to execute. If the value is an array, the first
element is the program to execute, and subsequent elements are placed
at the beginning of the command line in prior to any command line
bindings. If the program includes a path separator character it must
Specifies the program to execute. If an array, the first element of
the array is the command to execute, and subsequent elements are
mandatory command line arguments. The elements in `baseCommand` must
appear before any command line bindings from `inputBinding` or
`arguments`.
If `baseCommand` is not provided or is an empty array, the first
element of the command line produced after processing `inputBinding` or
`arguments` must be used as the program to execute.
If the program includes a path separator character it must
be an absolute path, otherwise it is an error. If the program does not
include a path separator, search the `$PATH` variable in the runtime
environment of the workflow runner find the absolute path of the
executable.
type:
- string
- type: array
items: string
- string?
- string[]?
jsonldPredicate:
"_id": "cwl:baseCommand"
"_container": "@list"
Expand Down

0 comments on commit 46ce0c3

Please sign in to comment.