|
90 | 90 | </ol><li><a href="#expressions">3.4 Expressions</a><ol class="nav nav-pills nav-stacked nav-secondary"> |
91 | 91 | </ol><li><a href="#workflow_graph">3.5 Workflow graph</a><ol class="nav nav-pills nav-stacked nav-secondary"> |
92 | 92 | </ol><li><a href="#success_and_failure">3.6 Success and failure</a><ol class="nav nav-pills nav-stacked nav-secondary"> |
| 93 | +</ol><li><a href="#executing_cwl_documents_as_scripts">3.7 Executing CWL documents as scripts</a><ol class="nav nav-pills nav-stacked nav-secondary"> |
93 | 94 | </ol></li></ol><li><a href="#sample_cwl_workflow">4. Sample CWL workflow</a><ol class="nav nav-pills nav-stacked nav-secondary"> |
94 | 95 | </ol><li><a href="#reference">5. Reference</a><ol class="nav nav-pills nav-stacked nav-secondary"> |
95 | 96 | <li><a href="#workflow">5.1 Workflow</a><ol class="nav nav-pills nav-stacked nav-secondary"> |
@@ -412,8 +413,14 @@ <h1 id="success_and_failure">3.6 Success and failure</h1><p>A completed process |
412 | 413 | status is <code>success</code>.</p> |
413 | 414 | </li> |
414 | 415 | </ul> |
| 416 | +<h1 id="executing_cwl_documents_as_scripts">3.7 Executing CWL documents as scripts</h1><p>By convention, a CWL document may begin with <code>#!/usr/bin/env cwl-runner</code> |
| 417 | +and be marked as executable (the POSIX "+x" permission bits) to enable it |
| 418 | +to be executed directly. A workflow platform may support this mode of |
| 419 | +operation, if so, it must provide <code>cwl-runner</code> as an alias for the |
| 420 | +platform's CWL implementation.</p> |
415 | 421 | <h1 id="sample_cwl_workflow">4. Sample CWL workflow</h1><p>revtool.cwl:</p> |
416 | | -<pre><code># |
| 422 | +<pre><code>#!/usr/bin/env cwl-runner |
| 423 | +# |
417 | 424 | # Simplest example command line program wrapper for the Unix tool "rev". |
418 | 425 | # |
419 | 426 | class: CommandLineTool |
@@ -451,7 +458,9 @@ <h1 id="sample_cwl_workflow">4. Sample CWL workflow</h1><p>revtool.cwl:</p> |
451 | 458 | stdout: output.txt |
452 | 459 | </code></pre> |
453 | 460 | <p>sorttool.cwl:</p> |
454 | | -<pre><code># Example command line program wrapper for the Unix tool "sort" |
| 461 | +<pre><code>#!/usr/bin/env cwl-runner |
| 462 | +# |
| 463 | +# Example command line program wrapper for the Unix tool "sort" |
455 | 464 | # demonstrating command line flags. |
456 | 465 | class: CommandLineTool |
457 | 466 | description: "Sort lines using the `sort` command" |
@@ -487,7 +496,8 @@ <h1 id="sample_cwl_workflow">4. Sample CWL workflow</h1><p>revtool.cwl:</p> |
487 | 496 | stdout: output.txt |
488 | 497 | </code></pre> |
489 | 498 | <p>revsort.cwl:</p> |
490 | | -<pre><code># |
| 499 | +<pre><code>#!/usr/bin/env cwl-runner |
| 500 | +# |
491 | 501 | # This is a two-step workflow which uses "revtool" and "sorttool" defined above. |
492 | 502 | # |
493 | 503 | class: Workflow |
|
0 commit comments