aboutsummaryrefslogtreecommitdiff
path: root/cmd/krino/explain.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-09-14 23:40:56 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-09-14 23:40:56 +0200
commitbb8b547023b0867f31d7452faceef5769a45b94b (patch)
tree9daf9efd0ac5336747483557976a83ac5725b956 /cmd/krino/explain.go
parentc09020c2fb01da24d5befbed78ce3b73b5efbe4c (diff)
downloadkrino-bb8b547023b0867f31d7452faceef5769a45b94b.tar.gz
krino-bb8b547023b0867f31d7452faceef5769a45b94b.zip
explain: shows a duplicate's skipped delete, leaves the cache alone, walks only for duplicate tests
Diffstat (limited to 'cmd/krino/explain.go')
-rw-r--r--cmd/krino/explain.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/krino/explain.go b/cmd/krino/explain.go
index 5f9f6de..f65df42 100644
--- a/cmd/krino/explain.go
+++ b/cmd/krino/explain.go
@@ -78,6 +78,9 @@ func cmdExplain(g *globals, args []string, stdout, stderr io.Writer) int {
fmt.Fprintf(stdout, "rule %s: %s\n", rt.Rule.Name, status)
printTrace(stdout, rt.Trace)
}
+ if x.NoDelete != "" {
+ fmt.Fprintf(stdout, "\nkrino would skip deleting this file: %s\n", display(x.NoDelete))
+ }
return 0
}