-
-
Save burke/24b0c1e8a49f0fd2e84c1ec95a8525ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ESC = "\x1b" | |
GREEN = ESC + "[32m" | |
YELLOW = ESC + "[33m" | |
RED = ESC + "[31m" | |
BLUE = ESC + "[34m" | |
RESET = ESC + "[0m" | |
STAR_GLYPH = "\u{2b51}" # BLACK SMALL STAR (U+2B51) | |
INFO_GLYPH = "\u{1d4be}" # MATHEMATICAL SCRIPT SMALL I (U+1D4BE) | |
CHECK_GLYPH = "\u{2713}" # CHECK MARK (U+2713) | |
X_GLYPH = "\u{2717}" # BALLOT X (U+2717) | |
STAR = YELLOW + STAR_GLYPH + RESET | |
INFO = BLUE + INFO_GLYPH + RESET | |
CHECK = GREEN + CHECK_GLYPH + RESET | |
X = RED + X_GLYPH + RESET | |
puts(STAR + " we didn't need to do the thing") | |
puts(INFO + " you should know a thing, or we are going to do a thing") | |
puts(CHECK + " we did the thing successfully") | |
puts(X + " we failed to do the thing") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment