diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-15 22:11:33 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-15 22:11:33 +0200 |
| commit | 77a015b96db8727bb12d0869f180a44d087f6319 (patch) | |
| tree | d6e4e485f4556a676fd92a6792602fec690065be /cmd/krino/explain.go | |
| parent | 6b38d302daa54140e4e26ad903297a1bba0cbd41 (diff) | |
| download | krino-77a015b96db8727bb12d0869f180a44d087f6319.tar.gz krino-77a015b96db8727bb12d0869f180a44d087f6319.zip | |
an undecided (stop) rule ends the search for that file
Diffstat (limited to 'cmd/krino/explain.go')
| -rw-r--r-- | cmd/krino/explain.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/krino/explain.go b/cmd/krino/explain.go index f65df42..09145b9 100644 --- a/cmd/krino/explain.go +++ b/cmd/krino/explain.go @@ -72,8 +72,11 @@ func cmdExplain(g *globals, args []string, stdout, stderr io.Writer) int { continue } status := "no" - if rt.Match { + switch { + case rt.Match: status = "MATCH" + case rt.Trace != nil && rt.Trace.Unknown: + status = "undecided" } fmt.Fprintf(stdout, "rule %s: %s\n", rt.Rule.Name, status) printTrace(stdout, rt.Trace) |
