mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add comment color
This commit is contained in:
parent
a015f30769
commit
1a998b6cb6
1 changed files with 8 additions and 0 deletions
|
@ -17,6 +17,9 @@ module Spectator::Formatters
|
|||
# Symbol in `Colorize` representing pending or skipped.
|
||||
PENDING_COLOR = :yellow
|
||||
|
||||
# Symbol in `Colorize` representing a comment in output.
|
||||
COMMENT_COLOR = :cyan
|
||||
|
||||
# Colorizes some text with the success color.
|
||||
def success(text)
|
||||
text.colorize(SUCCESS_COLOR)
|
||||
|
@ -36,5 +39,10 @@ module Spectator::Formatters
|
|||
def pending(text)
|
||||
text.colorize(PENDING_COLOR)
|
||||
end
|
||||
|
||||
# Colorizes some text with the comment color.
|
||||
def comment(text)
|
||||
text.colorize(COMMENT_COLOR)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue