class Travis::CLI::Report
def list(key, value, additional = nil)
def list(key, value, additional = nil) value = case value when Array then value.empty? ? 'none' : value.map(&:inspect).join(', ') when true then 'yes' when false then 'no' when nil then 'unknown' else value.to_s end additional &&= " (#{additional})" say "#{key}:".ljust(known_repos? ? 50 : 25) << ' ' << color(value.to_s, :bold) << additional.to_s end