1
0
mirror of https://github.com/go-task/task.git synced 2025-01-04 03:48:02 +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
an 'output.txt' file.
'''
{
"hello": {
"cmds": [
"echo \"I am going to write a file named 'output.txt' now.\"",
"echo \"hello\" > output.txt"
],
"generates": [
"output.txt"
]
}
}
hello:
cmds:
- echo "I am going to write a file named 'output.txt' now."
- echo "hello" > output.txt
generates:
- output.txt
'''
`)
}

View File

@ -8,4 +8,4 @@
"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"]