Files
go-task/cmd/task/task.go
2017-02-28 18:33:53 -03:00

35 lines
533 B
Go

package main
import (
"flag"
"fmt"
"github.com/go-task/task"
)
func main() {
flag.CommandLine.Usage = func() {
fmt.Println(`
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"
]
}
}
'''
`)
}
flag.Parse()
task.Run()
}