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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user