summaryrefslogtreecommitdiffstats
path: root/src/core.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-03-13 20:56:31 +0900
committerGitHub <noreply@github.com>2024-03-13 20:56:31 +0900
commitd282a1649d7d953f028306f13d6616958f3fd1f3 (patch)
treeddab9c74f9afbf1d66f391064bb3fb8ee870cf53 /src/core.go
parent6ce8d49d1b6a38a1a7cbb02e2726956b211f46be (diff)
Add walker options and replace 'find' with the built-in walker (#3649)
Diffstat (limited to 'src/core.go')
-rw-r--r--src/core.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.go b/src/core.go
index 56a2198e..3abda89c 100644
--- a/src/core.go
+++ b/src/core.go
@@ -117,7 +117,7 @@ func Run(opts *Options, version string, revision string) {
reader = NewReader(func(data []byte) bool {
return chunkList.Push(data)
}, eventBox, opts.ReadZero, opts.Filter == nil)
- go reader.ReadSource()
+ go reader.ReadSource(opts.WalkerRoot, opts.WalkerOpts, opts.WalkerSkip)
}
// Matcher
@@ -165,7 +165,7 @@ func Run(opts *Options, version string, revision string) {
}
return false
}, eventBox, opts.ReadZero, false)
- reader.ReadSource()
+ reader.ReadSource(opts.WalkerRoot, opts.WalkerOpts, opts.WalkerSkip)
} else {
eventBox.Unwatch(EvtReadNew)
eventBox.WaitFor(EvtReadFin)