fix ignore missing
This commit is contained in:
parent
9293458ef1
commit
e15541d3fa
1
go.mod
1
go.mod
@ -3,6 +3,7 @@ module gitbase.de/apairon/fstrigger
|
||||
go 1.16
|
||||
|
||||
require (
|
||||
github.com/davecgh/go-spew v1.1.1
|
||||
github.com/domodwyer/mailyak/v3 v3.3.3
|
||||
github.com/flosch/pongo2/v4 v4.0.2
|
||||
github.com/rjeczalik/notify v0.9.2
|
||||
|
2
go.sum
2
go.sum
@ -1,3 +1,5 @@
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/domodwyer/mailyak/v3 v3.3.3 h1:E9cjqDUiwY1QSE5G2CbWHM7EJV5FybKPHnGovc2iaA8=
|
||||
github.com/domodwyer/mailyak/v3 v3.3.3/go.mod h1:lOm/u9CyCVWHeaAmHIdF4RiKVxKUT/H5XX10lIKAL6c=
|
||||
github.com/flosch/pongo2/v4 v4.0.2 h1:gv+5Pe3vaSVmiJvh/BZa82b7/00YUGm0PIyVVLop0Hw=
|
||||
|
4
main.go
4
main.go
@ -13,6 +13,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"github.com/domodwyer/mailyak/v3"
|
||||
"github.com/flosch/pongo2/v4"
|
||||
"github.com/rjeczalik/notify"
|
||||
@ -58,7 +59,7 @@ type DirectoryConfig struct {
|
||||
Events []string
|
||||
PollingInterval *int64 `yaml:"pollingInterval"`
|
||||
Regex *string
|
||||
IgnoreMissing bool
|
||||
IgnoreMissing bool `yaml:"ignoreMissing"`
|
||||
_regex *regexp.Regexp
|
||||
_regexMatches []string
|
||||
Actions []ActionConfig
|
||||
@ -490,6 +491,7 @@ func main() {
|
||||
if err != nil {
|
||||
log.Fatalf("error %v", err)
|
||||
}
|
||||
spew.Dump(conf)
|
||||
|
||||
for _, directory := range conf.Directories {
|
||||
directory := directory
|
||||
|
Loading…
Reference in New Issue
Block a user