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:
parent
61b1aa8559
commit
a53fcf8bba
@ -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
|
||||
'''
|
||||
`)
|
||||
}
|
||||
|
@ -8,4 +8,4 @@
|
||||
"output.txt"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
3
example/Taskfile.toml
Normal file
3
example/Taskfile.toml
Normal 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"]
|
Loading…
Reference in New Issue
Block a user