Skip to content

Update 02-1st-example.md #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions _episodes/02-1st-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@ keypoints:
---
The simplest "hello world" program. This accepts one input parameter, writes a message to the terminal or job log, and produces no permanent output. CWL documents are written in [JSON][json] or [YAML][yaml], or a mix of the two.

First, create a file called 1st-tool.cwl, containing the following:

*1st-tool.cwl*
~~~
{% include cwl/02-1st-example/1st-tool.cwl %}
~~~
{: .source}

Use a YAML or JSON object in a separate file to describe the input of a run:
Next, use a YAML or JSON object in a separate file to describe the input of a run:

*echo-job.yml*
~~~
{% include cwl/02-1st-example/echo-job.yml %}
~~~
{: .source}

Now invoke `cwl-runner` with the tool wrapper and the input object on the command line:
Now, invoke `cwl-runner` with the tool wrapper and the input object on the command line:

~~~
$ cwl-runner 1st-tool.cwl echo-job.yml
Expand Down