diff options
| author | sinner <[email protected]> | 2026-04-08 15:12:58 -0400 |
|---|---|---|
| committer | sinner <[email protected]> | 2026-04-08 15:12:58 -0400 |
| commit | 8a1cf20dd5014ebe15ced77344902b79dcfa2e66 (patch) | |
| tree | 86f7604170cf0f482223232b0381be46b4810855 /internal/formatter | |
| parent | 0b2d72ee862c2b1fc273f71504ea5b3daa61efcc (diff) | |
| download | dborg-8a1cf20dd5014ebe15ced77344902b79dcfa2e66.tar.gz dborg-8a1cf20dd5014ebe15ced77344902b79dcfa2e66.zip | |
feat: add ingest timestamp display to sl results formatter
Diffstat (limited to 'internal/formatter')
| -rw-r--r-- | internal/formatter/sl.go | 4 |
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") } |
