1
0
mirror of https://github.com/go-task/task.git synced 2025-06-15 00:15:10 +02:00

Refactor and move logic of reading Taskfiles to its own package

Idea to making things easier to start implementing #98
This commit is contained in:
Andrey Nering
2018-07-22 16:05:47 -03:00
parent 13f60bae41
commit 9f294b4d10
5 changed files with 108 additions and 82 deletions

View File

@ -9,11 +9,6 @@ import (
"mvdan.cc/sh/shell"
)
var (
// TaskvarsFilePath file containing additional variables.
TaskvarsFilePath = "Taskvars"
)
// CompiledTask returns a copy of a task, but replacing variables in almost all
// properties using the Go template package.
func (e *Executor) CompiledTask(call taskfile.Call) (*taskfile.Task, error) {