Module: Carioca::Services::Output::FormatsMapping

Included in:
Provider
Defined in:
lib/carioca/services/output.rb

Constant Summary collapse

COLORS =
{
  unknown: :red,
  fatal: :red,
  error: :red,
  ko: :yellow,
  warn: :yellow,
  item: :white,
  arrow: :white,
  sending: :white,
  calling: :white,
  scheduling: :white,
  trigger: :white,
  receive: :white,
  info: :cyan,
  ok: :green,
  success: :green,
  debug: :magenta,
  flat: :white,
  skipped: :white
}.freeze
EMOJI =
{
  unknown: { value: "\u{1F4A5}", alt: '[!!]', text: '(UNKNOWN)' },
  fatal: { value: "\u{26D4}", alt: '[!!]', text: '(FATAL)' },
  error: { value: "\u{1F6AB}", alt: '[!]', text: '(ERROR)' },
  ko: { value: "\u{1F44E}", alt: '[-]', text: '(KO)' },
  warn: { value: "\u{26A0}", alt: '[/!\]', text: '(WARNING)' },
  info: { value: "\u{2139}", alt: '[i]', text: '(INFO)' },
  item: { value: " \u{1F539}", alt: '', text: ' *' },
  arrow: { value: "  \u{27A1}", alt: '', text: ' =>' },
  calling: { value: "\u{1F4DE}", alt: '[C]', text: '(CALLING)' },
  scheduling: { value: "\u{23F2}", alt: '[S]', text: '{SCHEDULING})' },
  trigger: { value: "\u{23F0}", alt: '[T]', text: '(TRIGGER)' },
  sending: { value: "\u{1F4E4}", alt: '[>]', text: '(SENDING)' },
  receive: { value: "\u{1F4E5}", alt: '[<]', text: '(RECEIVE)' },
  ok: { value: "\u{1F44D}", alt: '[+]', text: '(OK)' },
  success: { value: "\u{1F4AA}", alt: '[+]', text: '(SUCCESS)' },
  debug: { value: "\u{1F41B}", alt: '[D]', text: '(DEBUG)' },
  flat: { value: '', alt: '' },
  skipped: { value: "\u{23E9}", alt: '[I]', text: '(SKIPPED)' }
}.freeze
LEVELS =
%i[debug info warn error fatal unknown].freeze
ALIAS =
{
  flat: :info,
  item: :info,
  ok: :info,
  ko: :error,
  trigger: :info,
  scheduling: :info,
  arrow: :info,
  sending: :info,
  calling: :info,
  receive: :info,
  success: :info,
  skipped: :info

}.freeze