mirror of
https://github.com/thelounge/thelounge
synced 2024-11-25 13:30:21 +00:00
Switch CLI tool from lounge
to thelounge
and deprecate lounge
This is in preparation of The Lounge v3 which will make `thelounge` uniform across the entire project. No more confusion!
This commit is contained in:
parent
f2d9ef62cf
commit
aca23257ed
5 changed files with 14 additions and 6 deletions
|
@ -40,13 +40,13 @@ Run this in a terminal to install (or upgrade) the latest stable release from
|
|||
When installation is complete, run:
|
||||
|
||||
```sh
|
||||
lounge start
|
||||
thelounge start
|
||||
```
|
||||
|
||||
For more information, read the [documentation](https://thelounge.github.io/docs/), [wiki](https://github.com/thelounge/lounge/wiki), or run:
|
||||
|
||||
```sh
|
||||
lounge --help
|
||||
thelounge --help
|
||||
```
|
||||
|
||||
### Running from source
|
||||
|
@ -61,7 +61,7 @@ NODE_ENV=production npm run build
|
|||
npm start
|
||||
```
|
||||
|
||||
When installed like this, npm doesn't create a `lounge` executable. Use `npm start -- <command>` to run subcommands.
|
||||
When installed like this, npm doesn't create a `thelounge` executable. Use `npm start -- <command>` to run subcommands.
|
||||
|
||||
⚠️ While it is the most recent codebase, this is not production-ready! Run at
|
||||
your own risk. It is also not recommended to run this as root.
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
"version": "2.6.0",
|
||||
"preferGlobal": true,
|
||||
"bin": {
|
||||
"lounge": "index.js"
|
||||
"lounge": "index.js",
|
||||
"thelounge": "index.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -35,7 +35,7 @@ ClientManager.prototype.findClient = function(name) {
|
|||
|
||||
ClientManager.prototype.autoloadUsers = function() {
|
||||
const users = this.getUsers();
|
||||
const noUsersWarning = `There are currently no users. Create one with ${colors.bold("lounge add <name>")}.`;
|
||||
const noUsersWarning = `There are currently no users. Create one with ${colors.bold("thelounge add <name>")}.`;
|
||||
|
||||
if (users.length === 0) {
|
||||
log.info(noUsersWarning);
|
||||
|
|
|
@ -39,6 +39,13 @@ require("./reset");
|
|||
require("./edit");
|
||||
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(`Use ${colors.green("thelounge")} instead.`);
|
||||
process.argv[1] = "thelounge";
|
||||
}
|
||||
|
||||
program.parse(process.argv);
|
||||
|
||||
if (!program.args.length) {
|
||||
|
|
|
@ -34,6 +34,6 @@ program
|
|||
log.info(`${i + 1}. ${colors.bold(user)}`);
|
||||
});
|
||||
} else {
|
||||
log.info(`There are currently no users. Create one with ${colors.bold("lounge add <name>")}.`);
|
||||
log.info(`There are currently no users. Create one with ${colors.bold("thelounge add <name>")}.`);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue