diff --git a/src/command-line/index.js b/src/command-line/index.js index 0ac9e2eb..b0e2c04b 100644 --- a/src/command-line/index.js +++ b/src/command-line/index.js @@ -11,12 +11,12 @@ const Helper = require("../helper"); const Utils = require("./utils"); if (require("semver").lt(process.version, "6.0.0")) { - log.warn(`Support of Node.js v4 is ${colors.bold("deprecated")} and will be removed in The Lounge v3.`); + log.warn(`Support of Node.js v4 is ${colors.bold.red("deprecated")} and will be removed in The Lounge v3.`); log.warn("Please upgrade to Node.js v6 or more recent."); } program.version(Helper.getVersion(), "-v, --version") - .option("--home ", `${colors.bold("[DEPRECATED]")} Use the ${colors.green("THELOUNGE_HOME")} environment variable instead.`) + .option("--home ", `${colors.bold.red("[DEPRECATED]")} Use the ${colors.green("THELOUNGE_HOME")} environment variable instead.`) .option( "-c, --config ", "override entries of the configuration file, must be specified for each entry that needs to be overriden", @@ -26,7 +26,7 @@ program.version(Helper.getVersion(), "-v, --version") .parseOptions(process.argv); if (program.home) { - log.warn(`${colors.green("--home")} is ${colors.bold("deprecated")} and will be removed in The Lounge v3.`); + log.warn(`${colors.green("--home")} is ${colors.bold.red("deprecated")} and will be removed in The Lounge v3.`); log.warn(`Use the ${colors.green("THELOUNGE_HOME")} environment variable instead.`); } @@ -43,7 +43,7 @@ if (!fs.existsSync(path.join( } if (process.env.LOUNGE_HOME) { - log.warn(`${colors.green("LOUNGE_HOME")} is ${colors.bold("deprecated")} and will be removed in The Lounge v3.`); + log.warn(`${colors.green("LOUNGE_HOME")} is ${colors.bold.red("deprecated")} and will be removed in The Lounge v3.`); log.warn(`Use ${colors.green("THELOUNGE_HOME")} instead.`); } @@ -67,7 +67,7 @@ require("./install"); // TODO: Remove this when releasing The Lounge v3 if (process.argv[1].endsWith(`${require("path").sep}lounge`)) { - log.warn(`The ${colors.red("lounge")} CLI is ${colors.bold("deprecated")} and will be removed in v3.`); + log.warn(`The ${colors.red("lounge")} CLI is ${colors.bold.red("deprecated")} and will be removed in v3.`); log.warn(`Use ${colors.green("thelounge")} instead.`); process.argv[1] = "thelounge"; } diff --git a/src/command-line/utils.js b/src/command-line/utils.js index 0e5e29ac..6f838bab 100644 --- a/src/command-line/utils.js +++ b/src/command-line/utils.js @@ -35,7 +35,7 @@ class Utils { ".lounge_home" )); if (fs.existsSync(deprecatedDistConfig)) { - log.warn(`${colors.green(".lounge_home")} is ${colors.bold("deprecated")} and will be ignored as of The Lounge v3.`); + log.warn(`${colors.green(".lounge_home")} is ${colors.bold.red("deprecated")} and will be ignored as of The Lounge v3.`); log.warn(`Use ${colors.green(".thelounge_home")} instead.`); distConfig = deprecatedDistConfig; diff --git a/src/helper.js b/src/helper.js index 20cdebe2..12683c4f 100644 --- a/src/helper.js +++ b/src/helper.js @@ -109,7 +109,7 @@ function setHome(newPath) { // TODO: Remove in future release // Backwards compatibility for old way of specifying themes in settings if (this.config.theme.includes(".css")) { - log.warn(`Referring to CSS files in the ${colors.green("theme")} setting of ${colors.green(configPath)} is ${colors.bold("deprecated")} and will be removed in a future version.`); + log.warn(`Referring to CSS files in the ${colors.green("theme")} setting of ${colors.green(configPath)} is ${colors.bold.red("deprecated")} and will be removed in a future version.`); } else { this.config.theme = `themes/${this.config.theme}.css`; }