1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

fix: watch interval (#970)

This commit is contained in:
Pete Davison
2022-12-31 10:48:49 -06:00
committed by GitHub
parent c7d9efebf9
commit 796097e3ab
5 changed files with 17 additions and 30 deletions

View File

@@ -3,6 +3,7 @@ package taskfile
import (
"fmt"
"strconv"
"time"
"gopkg.in/yaml.v3"
)
@@ -20,7 +21,7 @@ type Taskfile struct {
Silent bool
Dotenv []string
Run string
Interval string
Interval time.Duration
}
func (tf *Taskfile) UnmarshalYAML(node *yaml.Node) error {
@@ -39,7 +40,7 @@ func (tf *Taskfile) UnmarshalYAML(node *yaml.Node) error {
Silent bool
Dotenv []string
Run string
Interval string
Interval time.Duration
}
if err := node.Decode(&taskfile); err != nil {
return err