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

Watch task

This commit is contained in:
Andrey Nering
2017-04-01 16:04:52 -03:00
parent 36614dccf8
commit 72a6727e31
4 changed files with 116 additions and 0 deletions

View File

@ -36,3 +36,11 @@ type cyclicDepError struct {
func (err *cyclicDepError) Error() string {
return fmt.Sprintf(`task: Cyclic dependency of task "%s" detected`, err.taskName)
}
type cantWatchNoSourcesError struct {
taskName string
}
func (err *cantWatchNoSourcesError) Error() string {
return fmt.Sprintf(`task: Can't watch task "%s" because it has no specified sources`, err.taskName)
}