Add sensitive content warning

This commit is contained in:
Melroy van den Berg 2025-04-25 00:03:23 +02:00
parent f2ffead88b
commit a802483eb6
No known key found for this signature in database
GPG key ID: 71D11FF23454B9D7

View file

@ -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)