Skip to content

Commit 3c3e733

Browse files
committed
fix: use dynamic version in About page
1 parent a415b62 commit 3c3e733

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/go-promptguard/interactive.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -878,11 +878,11 @@ func (m model) viewAbout() string {
878878
s.WriteString(lipgloss.Place(m.width, 0, lipgloss.Center, lipgloss.Top, title))
879879
s.WriteString("\n\n")
880880

881-
content := `go-promptguard
881+
content := fmt.Sprintf(`go-promptguard
882882
883883
Prompt injection detection library for Go
884884
885-
Version: 0.1.0
885+
Version: %s
886886
Repository: github.com/mdombrov-33/go-promptguard
887887
888888
Detectors:
@@ -894,7 +894,7 @@ Detectors:
894894
• Perplexity Analysis
895895
• Token Anomaly
896896
• LLM Judge (optional)
897-
`
897+
`, version)
898898

899899
panel := panelStyle.Width(70).Render(content)
900900
s.WriteString(lipgloss.Place(m.width, 0, lipgloss.Center, lipgloss.Top, panel))

0 commit comments

Comments
 (0)