Merge pull request #2077 from thelounge/astorije/rm-lounge-cli

Remove support for the `lounge` CLI (which was replaced with `thelounge`)
This commit is contained in:
Jérémie Astori 2018-02-19 13:27:47 -05:00 committed by GitHub
commit c7ad6d9d3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View file

@ -4,7 +4,6 @@
"version": "2.7.1",
"preferGlobal": true,
"bin": {
"lounge": "index.js",
"thelounge": "index.js"
},
"repository": {

View file

@ -46,13 +46,6 @@ if (!Helper.config.public && !Helper.config.ldap.enable) {
require("./install");
require("./uninstall");
// 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.red("deprecated")} and will be removed in v3.`);
log.warn(`Use ${colors.green("thelounge")} instead.`);
process.argv[1] = "thelounge";
}
// `parse` expects to be passed `process.argv`, but we need to remove to give it
// a version of `argv` that does not contain options already parsed by
// `parseOptions` above.