Skip to content

Commit 6c65ee3

Browse files
committed
style: fix more lint issues
1 parent 642fbe8 commit 6c65ee3

File tree

1 file changed

+58
-18
lines changed

1 file changed

+58
-18
lines changed

bin/_helpers

Lines changed: 58 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,25 @@ else
1414
WIDTH=$ACTUAL_WIDTH
1515
fi
1616

17+
declare BG_R
18+
declare BG_G
19+
declare BG_Y
20+
declare BG_B
21+
declare BG_M
22+
declare BG_C
23+
declare BG_N
24+
25+
declare FG_R
26+
declare FG_G
27+
declare FG_Y
28+
declare FG_B
29+
declare FG_M
30+
declare FG_C
31+
declare FG_N
32+
33+
declare BOLD
34+
declare RESET
35+
1736
# Setup Color Outputs
1837
if test -t 1; then
1938
ncolors=$(tput colors)
@@ -27,24 +46,24 @@ if test -t 1; then
2746
COLOR_C=6 # color code - CYAN
2847
COLOR_N=246 # color code - NEUTRAL (GRAY)
2948

30-
export BG_R="$(tput setab $COLOR_R)" # Background - RED
31-
export BG_G="$(tput setab $COLOR_G)" # Background - GREEN
32-
export BG_Y="$(tput setab $COLOR_Y)" # Background - YELLOW
33-
export BG_B="$(tput setab $COLOR_B)" # Background - BLUE
34-
export BG_M="$(tput setab $COLOR_M)" # Background - MAGENTA
35-
export BG_C="$(tput setab $COLOR_C)" # Background - CYAN
36-
export BG_N="$(tput setab $COLOR_N)" # Background - NEUTRAL (GRAY)
37-
38-
export FG_R="$(tput setaf $COLOR_R)" # Foreground - RED
39-
export FG_G="$(tput setaf $COLOR_G)" # Foreground - GREEN
40-
export FG_Y="$(tput setaf $COLOR_Y)" # Foreground - YELLOW
41-
export FG_B="$(tput setaf $COLOR_B)" # Foreground - BLUE
42-
export FG_M="$(tput setaf $COLOR_M)" # Foreground - MAGENTA
43-
export FG_C="$(tput setaf $COLOR_C)" # Foreground - CYAN
44-
export FG_N="$(tput setaf $COLOR_N)" # Foreground - NEUTRAL (GRAY)
45-
46-
export BOLD="$(tput bold)"
47-
export RESET="$(tput sgr0)"
49+
BG_R="$(tput setab $COLOR_R)" # Background - RED
50+
BG_G="$(tput setab $COLOR_G)" # Background - GREEN
51+
BG_Y="$(tput setab $COLOR_Y)" # Background - YELLOW
52+
BG_B="$(tput setab $COLOR_B)" # Background - BLUE
53+
BG_M="$(tput setab $COLOR_M)" # Background - MAGENTA
54+
BG_C="$(tput setab $COLOR_C)" # Background - CYAN
55+
BG_N="$(tput setab $COLOR_N)" # Background - NEUTRAL (GRAY)
56+
57+
FG_R="$(tput setaf $COLOR_R)" # Foreground - RED
58+
FG_G="$(tput setaf $COLOR_G)" # Foreground - GREEN
59+
FG_Y="$(tput setaf $COLOR_Y)" # Foreground - YELLOW
60+
FG_B="$(tput setaf $COLOR_B)" # Foreground - BLUE
61+
FG_M="$(tput setaf $COLOR_M)" # Foreground - MAGENTA
62+
FG_C="$(tput setaf $COLOR_C)" # Foreground - CYAN
63+
FG_N="$(tput setaf $COLOR_N)" # Foreground - NEUTRAL (GRAY)
64+
65+
BOLD="$(tput bold)"
66+
RESET="$(tput sgr0)"
4867
fi
4968
fi
5069

@@ -74,3 +93,24 @@ function output_error {
7493
function output_info {
7594
output_tagged_string "$BG_B" "INFO" "$1"
7695
}
96+
97+
export BG_R
98+
export BG_G
99+
export BG_Y
100+
export BG_B
101+
export BG_M
102+
export BG_C
103+
export BG_N
104+
105+
export FG_R
106+
export FG_G
107+
export FG_Y
108+
export FG_B
109+
export FG_M
110+
export FG_C
111+
export FG_N
112+
113+
export BOLD
114+
export RESET
115+
116+
export WIDTH

0 commit comments

Comments
 (0)