diff --git a/go.mod b/go.mod index 55ab5d2..712ae2b 100644 --- a/go.mod +++ b/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 diff --git a/go.sum b/go.sum index bf34a32..e872b7a 100644 --- a/go.sum +++ b/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= diff --git a/main.go b/main.go index 93ffda1..130977e 100644 --- a/main.go +++ b/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