const KEY_WORDS = {
    "SUCCESS": ["successfully", "done", "ready", "ok", "OK", "success"],
    "WARN": ["from", "to", "created", "retry", "Warning", "result"],
    "ERROR": ["error", "Error", "not", "fail"],
    "INFO": ["Copying", "Removing", "Checking", "Backing up", "Restoring"]
};

const KEY_WORDS_COLORS = {
    "SUCCESS": "fg-green",
    "WARN": "fg-yellow",
    "ERROR": "fg-red",
    "INFO": "fg-magenta"
};

const BASE_COLORS = {
    "RESET": "\x1b[0m",
    "BRIGHT": "\x1b[1m",
    "DIM": "\x1b[2m",
    "UNDERSCORE": "\x1b[4m",
    "BLINK": "\x1b[5m",
    "REVERSE": "\x1b[7m",
    "HIDDEN": "\x1b[8m"
};

const FG_COLOR = {
    "fg-black": "\x1b[30m",
    "fg-red": "\x1b[31m",
    "fg-green": "\x1b[32m",
    "fg-yellow": "\x1b[33m",
    "fg-blue": "\x1b[34m",
    "fg-magenta": "\x1b[35m",
    "fg-cyan": "\x1b[36m",
    "fg-white": "\x1b[37m",
};

const BG_COLOR = {
    "bg-black": "\x1b[40m",
    "bg-red": "\x1b[41m",
    "bg-green": "\x1b[42m",
    "bg-yellow": "\x1b[43m",
    "bg-blue": "\x1b[44m",
    "bg-magenta": "\x1b[45m",
    "bg-cyan": "\x1b[46m",
    "bg-white": "\x1b[47m",
}

const DELIMITERS = {
    "COLOR": '$',
    "TEXT": '$'
};

module.exports = {
    BASE_COLORS,
    FG_COLOR,
    BG_COLOR,
    KEY_WORDS,
    KEY_WORDS_COLORS,
    DELIMITERS
};
