aboutsummaryrefslogtreecommitdiff
path: root/cmd/krino/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/krino/common.go')
-rw-r--r--cmd/krino/common.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/krino/common.go b/cmd/krino/common.go
index 4552441..11e73c5 100644
--- a/cmd/krino/common.go
+++ b/cmd/krino/common.go
@@ -5,6 +5,7 @@ package main
import (
"fmt"
"io"
+ "path/filepath"
"strings"
"time"
@@ -30,6 +31,11 @@ func minAgeOverride(g *globals) (d time.Duration, set bool, err error) {
return d, true, nil
}
+// cacheDir is where every directory's keyword cache lives (spec ยง6.1).
+func cacheDir() string {
+ return filepath.Join(xdg.CacheHome(), "krino")
+}
+
// applyMinAge sets every loaded directory's min-age to d, for this run only.
func applyMinAge(e *engine.Engine, d time.Duration) {
for _, dir := range e.Dirs {