1
0
mirror of https://github.com/go-task/task.git synced 2025-01-14 04:35:50 +02:00

Add warning about Taskfile version 2 until v2.0.0 release

This commit is contained in:
Andrey Nering 2018-02-18 10:04:17 -03:00
parent 3556942516
commit 19d4b8b7f7

View File

@ -109,6 +109,10 @@ func (e *Executor) setup() error {
Vars: e.taskvars,
Logger: e.Logger,
}
if !e.Silent {
e.Logger.Errf(`task: warning: Taskfile "version: 2" is experimental and implementation can change before v2.0.0 release`)
}
default:
return fmt.Errorf(`task: Unrecognized Taskfile version "%d"`, e.Taskfile.Version)
}