diff --git a/formatter/formatter.go b/formatter/formatter.go index 886cce4..69e4a6e 100644 --- a/formatter/formatter.go +++ b/formatter/formatter.go @@ -49,6 +49,11 @@ func createSummary(jsonStr string) string { header := fmt.Sprintf("%s: %s\n", bold("Type"), cyan(objectType)) + // Add sensitive content warning if present + if gjson.Get(jsonStr, "sensitive").Bool() { + header += fmt.Sprintf("%s: %s\n", red(bold("WARNING")), red("Sensitive Content!")) + } + // Add common fields var summaryParts []string summaryParts = append(summaryParts, header)