Skip to content

Commit a334205

Browse files
author
Peter Amstutz
committed
Update readme
1 parent 1179f83 commit a334205

File tree

5 files changed

+10089
-34
lines changed

5 files changed

+10089
-34
lines changed

README.md

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,37 @@ Design principals:
1212

1313
# Quickstart using Docker
1414

15-
Build a self-contained script (no imports)
15+
Requires a [CWL implementation](https://www.commonwl.org/#Implementations).
16+
17+
Pulls the `commonworkflowlanguage/cwlex` Docker image.
18+
19+
Convert a self-contained (no imports) cwlex script to CWL:
1620

1721
```
18-
cwl-runner cwlex.cwl --inp myscript.cwlex
22+
$ cwl-runner cwlex.cwl --inp myscript.cwlex
1923
```
2024

21-
Build script with imports:
25+
Convert a cwlex script with imports to CWL:
2226

2327
```
24-
cwl-runner cwlex.cwl --inpdir . --inpfile myscript.cwlex
28+
$ cwl-runner cwlex.cwl --inpdir . --inpfile myscript.cwlex
2529
```
2630

27-
# Installing
31+
The resulting script can be run with any [CWL implementation](https://www.commonwl.org/#Implementations):
2832

2933
```
30-
npm install cwl-ex
34+
$ cwl-runner myscript.cwl
3135
```
3236

33-
# Usage
37+
# Installing & Usage
38+
39+
Easy install from npm. Requires node.js.
40+
41+
```
42+
$ npm install cwl-ex
43+
```
44+
45+
Installs executable entry point `cwlex` in the npm `bin` directory.
3446

3547
```
3648
$ cwlex myscript.cwlex > myscript.cwl
@@ -242,18 +254,12 @@ def workflow main(v1="hello", v2="world") {
242254

243255
# Developing
244256

245-
Generate the parser (requires antlr4):
257+
Regenerate the parser (requires antlr4):
246258

247259
```
248260
$ cd src && cwl-runner antlr.cwl
249261
```
250262

251-
Run local code in Docker
252-
```
253-
cwl-runner cwlex.cwl --inp src/cwlex-dev.cwlex
254-
cwl-runner cwlex-dev.cwl --inp myscript.cwlex
255-
```
256-
257263
Run tests:
258264

259265
```
@@ -267,8 +273,19 @@ Install dependencies (requires node.js and npm):
267273
$ npm install
268274
```
269275

270-
Generate Docker image
276+
Build npm package:
277+
278+
```
279+
$ npm pack
280+
```
281+
282+
Install local npm package into a Docker image.
283+
```
284+
$ docker build -f cwlex.Dockerfile -t commonworkflowlanguage/cwlex .
285+
```
286+
287+
Update README.md
271288
```
272-
npm pack
273-
docker build -f cwlex.Dockerfile .
289+
$ cwl-runner cwlex.cwl --inp makereadme.cwlex
290+
$ cwl-runner makereadme.cwl
274291
```

README.md.tmpl

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,37 @@ Design principals:
1212

1313
# Quickstart using Docker
1414

15-
Build a self-contained script (no imports)
15+
Requires a [CWL implementation](https://www.commonwl.org/#Implementations).
16+
17+
Pulls the `commonworkflowlanguage/cwlex` Docker image.
18+
19+
Convert a self-contained (no imports) cwlex script to CWL:
1620

1721
```
18-
cwl-runner cwlex.cwl --inp myscript.cwlex
22+
$ cwl-runner cwlex.cwl --inp myscript.cwlex
1923
```
2024

21-
Build script with imports:
25+
Convert a cwlex script with imports to CWL:
2226

2327
```
24-
cwl-runner cwlex.cwl --inpdir . --inpfile myscript.cwlex
28+
$ cwl-runner cwlex.cwl --inpdir . --inpfile myscript.cwlex
2529
```
2630

27-
# Installing
31+
The resulting script can be run with any [CWL implementation](https://www.commonwl.org/#Implementations):
2832

2933
```
30-
npm install cwl-ex
34+
$ cwl-runner myscript.cwl
3135
```
3236

33-
# Usage
37+
# Installing & Usage
38+
39+
Easy install from npm. Requires node.js.
40+
41+
```
42+
$ npm install cwl-ex
43+
```
44+
45+
Installs executable entry point `cwlex` in the npm `bin` directory.
3446

3547
```
3648
$ cwlex myscript.cwlex > myscript.cwl
@@ -166,18 +178,12 @@ $include: ex14.cwlex
166178

167179
# Developing
168180

169-
Generate the parser (requires antlr4):
181+
Regenerate the parser (requires antlr4):
170182

171183
```
172184
$ cd src && cwl-runner antlr.cwl
173185
```
174186

175-
Run local code in Docker
176-
```
177-
cwl-runner cwlex.cwl --inp src/cwlex-dev.cwlex
178-
cwl-runner cwlex-dev.cwl --inp myscript.cwlex
179-
```
180-
181187
Run tests:
182188

183189
```
@@ -191,8 +197,19 @@ Install dependencies (requires node.js and npm):
191197
$ npm install
192198
```
193199

194-
Generate Docker image
200+
Build npm package:
201+
202+
```
203+
$ npm pack
204+
```
205+
206+
Install local npm package into a Docker image.
207+
```
208+
$ docker build -f cwlex.Dockerfile -t commonworkflowlanguage/cwlex .
209+
```
210+
211+
Update README.md
195212
```
196-
npm pack
197-
docker build -f cwlex.Dockerfile .
213+
$ cwl-runner cwlex.cwl --inp makereadme.cwlex
214+
$ cwl-runner makereadme.cwl
198215
```

0 commit comments

Comments
 (0)