summaryrefslogtreecommitdiffstats
path: root/internal/formatter/sl.go
diff options
context:
space:
mode:
authorsinner <[email protected]>2026-04-08 15:12:58 -0400
committersinner <[email protected]>2026-04-08 15:12:58 -0400
commit8a1cf20dd5014ebe15ced77344902b79dcfa2e66 (patch)
tree86f7604170cf0f482223232b0381be46b4810855 /internal/formatter/sl.go
parent0b2d72ee862c2b1fc273f71504ea5b3daa61efcc (diff)
downloaddborg-8a1cf20dd5014ebe15ced77344902b79dcfa2e66.tar.gz
dborg-8a1cf20dd5014ebe15ced77344902b79dcfa2e66.zip
feat: add ingest timestamp display to sl results formatter
Diffstat (limited to 'internal/formatter/sl.go')
-rw-r--r--internal/formatter/sl.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/formatter/sl.go b/internal/formatter/sl.go
index 33f4ac0..a28552b 100644
--- a/internal/formatter/sl.go
+++ b/internal/formatter/sl.go
@@ -50,6 +50,10 @@ func FormatSLResults(resp *models.SLResponse, asJSON bool) (string, error) {
sb.WriteString(fmt.Sprintf("%s %s\n", Dim("Source:"), Magenta(hit.Filename)))
}
+ if hit.IngestTimestamp != "" {
+ sb.WriteString(fmt.Sprintf("%s %s\n", Dim("Ingested:"), Dim(hit.IngestTimestamp)))
+ }
+
sb.WriteString("\n")
}