Skip to content

Commit f69e5f8

Browse files
author
Curoverse build bot
committed
Build bot
1 parent 13f0fdf commit f69e5f8

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

draft-2/index.html

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
</ol><li><a href="#expressions">3.4 Expressions</a><ol class="nav nav-pills nav-stacked nav-secondary">
9191
</ol><li><a href="#workflow_graph">3.5 Workflow graph</a><ol class="nav nav-pills nav-stacked nav-secondary">
9292
</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">
9394
</ol></li></ol><li><a href="#sample_cwl_workflow">4. Sample CWL workflow</a><ol class="nav nav-pills nav-stacked nav-secondary">
9495
</ol><li><a href="#reference">5. Reference</a><ol class="nav nav-pills nav-stacked nav-secondary">
9596
<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
412413
status is <code>success</code>.</p>
413414
</li>
414415
</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>
415421
<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+
#
417424
# Simplest example command line program wrapper for the Unix tool "rev".
418425
#
419426
class: CommandLineTool
@@ -451,7 +458,9 @@ <h1 id="sample_cwl_workflow">4. Sample CWL workflow</h1><p>revtool.cwl:</p>
451458
stdout: output.txt
452459
</code></pre>
453460
<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"
455464
# demonstrating command line flags.
456465
class: CommandLineTool
457466
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>
487496
stdout: output.txt
488497
</code></pre>
489498
<p>revsort.cwl:</p>
490-
<pre><code>#
499+
<pre><code>#!/usr/bin/env cwl-runner
500+
#
491501
# This is a two-step workflow which uses "revtool" and "sorttool" defined above.
492502
#
493503
class: Workflow

0 commit comments

Comments
 (0)