Skip to content

Commit 4ebf411

Browse files
authored
Merge pull request #13 from common-workflow-language/inputBinding.position_expr
Allow Expressions in inputBinding.position
2 parents d20ae90 + 0bd621f commit 4ebf411

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

CommandLineTool.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,14 @@ $graph:
197197
198198
fields:
199199
- name: position
200-
type: int?
201-
doc: "The sorting key. Default position is 0."
200+
type: [ int, Expression, string, "null" ]
201+
doc: |
202+
The sorting key. Default position is 0. If the inputBinding is
203+
associated with an input parameter, then the value of `self` in the
204+
expression will be the value of the input parameter. Input parameter
205+
defaults (as specified by the `InputParameter.default` field) must be
206+
applied before evaluating the expression. Expressions must return a
207+
single value of type int or a null.
202208
- name: prefix
203209
type: string?
204210
doc: "Command line prefix to add before the value."

0 commit comments

Comments
 (0)