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

Extract some functionality to its own packages

Like variable and template handling, and logging
This commit is contained in:
Andrey Nering
2018-02-17 16:12:41 -02:00
parent 152fc0ad38
commit 87a200e42c
14 changed files with 402 additions and 313 deletions

View File

@ -51,15 +51,6 @@ func (err *cantWatchNoSourcesError) Error() string {
return fmt.Sprintf(`task: Can't watch task "%s" because it has no specified sources`, err.taskName)
}
type dynamicVarError struct {
cause error
cmd string
}
func (err *dynamicVarError) Error() string {
return fmt.Sprintf(`task: Command "%s" in taskvars file failed: %s`, err.cmd, err.cause)
}
// MaximumTaskCallExceededError is returned when a task is called too
// many times. In this case you probably have a cyclic dependendy or
// infinite loop