module Envirobly::Colorize

def bold(text)

def bold(text)
  [ BOLD, text, RESET ].join
end

def cross

def cross
  "✖"
end

def display_config_errors(errors)

def display_config_errors(errors)
  puts "#{red(cross)} Config contains the following issues:"
  errors.each do |error|
    puts
    puts "  #{error["message"]}"
    if error["path"]
      puts faint("  #{downwards_arrow_to_right} #{error["path"]}")
    end
  end
end

def downwards_arrow_to_right

def downwards_arrow_to_right
  "↳"
end

def faint(text)

def faint(text)
  [ FAINT, text, RESET ].join
end

def green(text)

def green(text)
  [ GREEN, text, RESET ].join
end

def green_check

def green_check
  green("✔")
end

def red(text)

def red(text)
  [ RED, text, RESET ].join
end

def yellow(text)

def yellow(text)
  [ YELLOW, text, RESET ].join
end