Skip to content

Commit 0c17bde

Browse files
committed
Font color styling for the Selenium Grid
1 parent bf91698 commit 0c17bde

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

integrations/selenium_grid/font_color

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
# Text color variables
4+
txtund=$(tput sgr 0 1) # Underline
5+
txtbld=$(tput bold) # Bold
6+
regred=$(tput setaf 1) # Red
7+
regblu=$(tput setaf 4) # Blue
8+
reggrn=$(tput setaf 2) # Green
9+
regwht=$(tput setaf 7) # White
10+
txtrst=$(tput sgr0) # Reset
11+
info=${regwht}*${txtrst} # Feedback
12+
pass=${regblu}*${txtrst}
13+
warn=${regred}*${txtrst}
14+
ques=${regblu}?${txtrst}
15+
16+
FAIL_MSG="${regred}[FAILURE]${txtrst}"
17+
SUCCESS_MSG="${reggrn}[SUCCESS]${txtrst}"

integrations/selenium_grid/grid-hub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Usage: grid-hub {start|stop}
55
#
66

7-
source $(dirname $0)/util
7+
source $(dirname $0)/font_color
88

99
EXPECTED_ARGS=1
1010
E_BADARGS=65

integrations/selenium_grid/grid-node

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Usage: grid-node {start|stop}
55
#
66

7-
source $(dirname $0)/util
7+
source $(dirname $0)/font_color
88

99
EXPECTED_ARGS=1
1010
E_BADARGS=65

0 commit comments

Comments
 (0)