1
0
mirror of https://github.com/go-task/task.git synced 2025-07-15 01:35:00 +02:00

add toml example, use yaml in help doc

Signed-off-by: Andrey Nering <andrey.nering@gmail.com>
This commit is contained in:
Travis
2017-02-28 08:40:17 -08:00
committed by Andrey Nering
parent 61b1aa8559
commit a53fcf8bba
3 changed files with 10 additions and 12 deletions

View File

@ -15,17 +15,12 @@ task [target1 target2 ...]: Runs commands under targets like make.
Example: 'task hello' with the following 'Taskfile.json' file will generate Example: 'task hello' with the following 'Taskfile.json' file will generate
an 'output.txt' file. an 'output.txt' file.
''' '''
{ hello:
"hello": { cmds:
"cmds": [ - echo "I am going to write a file named 'output.txt' now."
"echo \"I am going to write a file named 'output.txt' now.\"", - echo "hello" > output.txt
"echo \"hello\" > output.txt" generates:
], - output.txt
"generates": [
"output.txt"
]
}
}
''' '''
`) `)
} }

3
example/Taskfile.toml Normal file
View File

@ -0,0 +1,3 @@
[hello]
cmds = ["echo \"I am going to write a file named 'output.txt' now.\"", "echo \"hello\" > output.txt"]
generates = ["output.txt"]