Skip to content

Commit

Permalink
Update README and Dofile.example
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Kluth <me@dittusch.dev>
  • Loading branch information
Alexander Kluth committed Sep 13, 2019
1 parent 92bcb4d commit ce7f519
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
20 changes: 11 additions & 9 deletions Dofile.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,27 @@ description = "Dofile example"

[tasks]

[tasks.ls]
[tasks.no-output]
commands = [
'ls /tmp',
'ls -l'
'true'
]

[tasks.date]
[tasks.show-dir]
commands = [
'date',
'ls /tmp',
'ls -l'
]
output = true
piped = true

[tasks.fail]
[tasks.print-date]
commands = [
'i-do-not-exist'
'date',
]
output = true

[tasks.combined]
tasks = [
'ls',
'date'
'show-dir',
'print-date'
]
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,28 @@ Dofile:
commands = [
"my-super-cool-build-tool --with-options AndArguments"
]
output = true

[tasks.clean]
commands = [
"rm -rf /",
"echo 'That wasn't so smart, wasn't it?'"
]
output = true
piped = true
[tasks.clean-build]
tasks = [
"clean",
"build"
]

Then simply type

$ do build
$ do clean
$ do build clean
$ do clean-build

to execute those super-important tasks.


0 comments on commit ce7f519

Please sign in to comment.