diff --git a/cmd/task/task.go b/cmd/task/task.go index eee52d81..037a1e3f 100644 --- a/cmd/task/task.go +++ b/cmd/task/task.go @@ -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 ''' `) } diff --git a/example/Taskfile.json b/example/Taskfile.json index aaca303f..032cf0e1 100644 --- a/example/Taskfile.json +++ b/example/Taskfile.json @@ -8,4 +8,4 @@ "output.txt" ] } -} \ No newline at end of file +} diff --git a/example/Taskfile.toml b/example/Taskfile.toml new file mode 100644 index 00000000..eaaac968 --- /dev/null +++ b/example/Taskfile.toml @@ -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"]