1
0
mirror of https://github.com/go-task/task.git synced 2025-11-29 22:48:03 +02:00

Add --init flag to create a new Taskfile

This commit is contained in:
Andrey Nering
2017-05-17 15:38:46 -03:00
parent 83f1b213fa
commit 2615000609
6 changed files with 59 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ hello:
`)
pflag.PrintDefaults()
}
pflag.BoolVarP(&task.Init, "init", "i", false, "creates a new Taskfile.yml in the current folder")
pflag.BoolVarP(&task.Force, "force", "f", false, "forces execution even when the task is up-to-date")
pflag.BoolVarP(&task.Watch, "watch", "w", false, "enables watch of the given task")
pflag.Parse()