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

Implemented os specific task file support

This commit is contained in:
Sascha Andres
2017-03-07 09:45:14 +01:00
parent f686c7598f
commit 6636cd38c0
3 changed files with 65 additions and 19 deletions

View File

@ -4,8 +4,13 @@ import (
"fmt"
)
// ErrNoTaskFile is returned when the program can not find a proper TaskFile
var ErrNoTaskFile = fmt.Errorf(`task: No task file found (is it named "%s"?)`, TaskFilePath)
type taskFileNotFound struct {
taskFile string
}
func (err taskFileNotFound) Error() string {
return fmt.Sprintf(`task: No task file found (is it named "%s"?)`, err.taskFile)
}
type taskNotFoundError struct {
taskName string