Skip to content

Commit

Permalink
simplify the YAML; add an option with a value
Browse files Browse the repository at this point in the history
  • Loading branch information
Heikki Lehvaslaiho authored and Heikki Lehvaslaiho committed Jun 24, 2012
1 parent 7468335 commit 8bc1ca2
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions t/data/string_manipulation.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
description: "Example of a pipeline\n Same as running:\n echo 'abcd' | tee /tmp/str | wc -c ; cat -n /tmp/str | wc -c\n but every stage is stored in a file\n "
description: "Example of a pipeline\n Same as running:\n echo 'abXcd' | tee /tmp/str | wc -c ; cat -n /tmp/str | tr -d X | wc -c\n but every stage is stored in a file\n "
name: String Manipulation
version: '0.4'
steps:
Expand All @@ -8,7 +8,7 @@ steps:
args:
in:
type: unnamed
value: abcd
value: abXcd
out:
type: redir
value: s1.txt
Expand All @@ -18,7 +18,7 @@ steps:
s2:
name: wc
args:
c: {}
c:
in:
type: redir
value: s1.txt
Expand All @@ -31,19 +31,32 @@ steps:
in:
type: redir
value: s1.txt
"n": {}
n:
out:
type: redir
value: s3_mod.txt
next:
- s4
s4:
s4:
name: tr
args:
d: X
in:
type: redir
value: s3_mod.txt
out:
type: redir
value: s4_tr.txt
next:
- s5

s5:
name: wc
args:
c: {}
c:
in:
type: redir
value: s3_mod.txt
value: s4_tr.txt
out:
type: redir
value: s4.count
value: s5.count

0 comments on commit 8bc1ca2

Please sign in to comment.