mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Merge pull request #1313 from chef/hannah-radish-patch-1
Updated color palettes, label colors and icons
This commit is contained in:
commit
59064b804f
1 changed files with 19 additions and 12 deletions
|
@ -254,23 +254,30 @@ class InspecRspecCli < InspecRspecJson # rubocop:disable Metrics/ClassLength
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
COLORS = {
|
COLORS = {
|
||||||
'critical' => "\033[31;1m",
|
'critical' => "\033[0;48;5;9m", # Red label
|
||||||
'major' => "\033[31m",
|
'major' => "\033[0;48;5;208m", # Orange label
|
||||||
'minor' => "\033[33m",
|
'minor' => "\033[0;48;5;33m", # Blue label
|
||||||
'failed' => "\033[31m",
|
'failed' => "\033[38;5;9m", # Red string
|
||||||
'passed' => "\033[32m",
|
'passed' => "\033[0;48;5;41m", # Green label
|
||||||
'skipped' => "\033[37m",
|
'success' => "\033[38;5;113m", # Green string
|
||||||
'reset' => "\033[0m",
|
'skipped' => "\033[0;48;5;247m", # Gray label
|
||||||
|
'skip' => "\033[38;5;247m", # Gray string
|
||||||
|
'reset' => "\033[0m", # Reset back to white
|
||||||
|
'cmnd' => "\033[0;36m", # Aqua string for commands
|
||||||
|
'inpt' => "\033[38;5;214m", # Orange string for user input
|
||||||
|
'atmate' => "\033[38;5;197m", # Pink string to launch Automate
|
||||||
|
'helpr' => "\033[38;5;7m", # Lt Gray string for helper text
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
INDICATORS = {
|
INDICATORS = {
|
||||||
'critical' => ' ✖ ',
|
'critical' => ' × ',
|
||||||
'major' => ' ✖ ',
|
'major' => ' ∅ ',
|
||||||
'minor' => ' ✖ ',
|
'minor' => ' ⊚ ',
|
||||||
'failed' => ' ✖ ',
|
'failed' => ' × ',
|
||||||
'skipped' => ' ○ ',
|
'skipped' => ' ↺ ',
|
||||||
'passed' => ' ✔ ',
|
'passed' => ' ✔ ',
|
||||||
'unknown' => ' ? ',
|
'unknown' => ' ? ',
|
||||||
|
'helpr' => ' ✣ ',
|
||||||
'empty' => ' ',
|
'empty' => ' ',
|
||||||
'small' => ' ',
|
'small' => ' ',
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
Loading…
Reference in a new issue