summaryrefslogtreecommitdiff
path: root/internal/color
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-09-19 13:22:59 +0300
committerPaul Buetow <paul@buetow.org>2021-10-02 12:26:29 +0300
commitfe3e68afd99d8ea246be52893730f987e138ec24 (patch)
tree726e0914730912e0a3b223f7b37facc05ba31140 /internal/color
parentabeac87aec44249bf67f1b0eca471a31086265ca (diff)
move args to config package
logger package rewrite as dlog
Diffstat (limited to 'internal/color')
-rw-r--r--internal/color/table.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/color/table.go b/internal/color/table.go
index 7ecfbca..2115edf 100644
--- a/internal/color/table.go
+++ b/internal/color/table.go
@@ -7,17 +7,17 @@ import (
const sampleParagraph string = "Mimecast is Making Email Safer for Business. We believe that securely operating a business in the cloud requires new levels of IT preparedness, centered around cyber resilience. This is why we unify the delivery and management of security, continuity and data protection for email via one, simple-to-use cloud platform. Thousands of organizations trust us to increase their cyber resilience preparedness, streamline compliance, reduce IT complexity and keep their business running. We give employees fast and secure access to sensitive business information, and ensure email keeps flowing in the event of an outage. Mimecast will remain committed to protecting your IT assets through constant innovation and focus on your success."
-func TablePrintAndExit(useSampleParagraph bool) {
+func TablePrintAndExit(displaySampleParagraph bool) {
for _, attr := range AttributeNames {
if attr == "Hidden" || attr == "SlowBlink" {
continue
}
- printColorTable(attr, useSampleParagraph)
+ printColorTable(attr, displaySampleParagraph)
}
os.Exit(0)
}
-func printColorTable(attr string, useSampleParagraph bool) {
+func printColorTable(attr string, displaySampleParagraph bool) {
for _, fg := range ColorNames {
fgColor, _ := ToFgColor(fg)
for _, bg := range ColorNames {
@@ -29,7 +29,7 @@ func printColorTable(attr string, useSampleParagraph bool) {
text := fmt.Sprintf(" Foreground:%10s | Background:%10s | Attribute:%10s ", fg, bg, attr)
fmt.Print(PaintStrWithAttr(text, fgColor, bgColor, attribute))
- if useSampleParagraph {
+ if displaySampleParagraph {
fmt.Print("\n")
fmt.Print(PaintStrWithAttr(sampleParagraph, fgColor, bgColor, attribute))
fmt.Print("\n")