Move user commands to their own subfolder
This commit is contained in:
parent
844ca1fbe6
commit
c038935b96
@ -51,11 +51,7 @@ Helper.setHome(home);
|
||||
|
||||
require("./start");
|
||||
require("./config");
|
||||
require("./list");
|
||||
require("./add");
|
||||
require("./remove");
|
||||
require("./reset");
|
||||
require("./edit");
|
||||
require("./users");
|
||||
require("./install");
|
||||
|
||||
// TODO: Remove this when releasing The Lounge v3
|
||||
|
@ -3,8 +3,8 @@
|
||||
const colors = require("colors/safe");
|
||||
const program = require("commander");
|
||||
const fs = require("fs");
|
||||
const Helper = require("../helper");
|
||||
const Utils = require("./utils");
|
||||
const Helper = require("../../helper");
|
||||
const Utils = require("../utils");
|
||||
|
||||
program
|
||||
.command("add <name>")
|
||||
@ -16,7 +16,7 @@ program
|
||||
return;
|
||||
}
|
||||
|
||||
const ClientManager = require("../clientManager");
|
||||
const ClientManager = require("../../clientManager");
|
||||
|
||||
if (Helper.config.public) {
|
||||
log.warn(`Users have no effect in ${colors.bold("public")} mode.`);
|
@ -4,8 +4,8 @@ const program = require("commander");
|
||||
const child = require("child_process");
|
||||
const colors = require("colors/safe");
|
||||
const fs = require("fs");
|
||||
const Helper = require("../helper");
|
||||
const Utils = require("./utils");
|
||||
const Helper = require("../../helper");
|
||||
const Utils = require("../utils");
|
||||
|
||||
program
|
||||
.command("edit <name>")
|
||||
@ -17,7 +17,7 @@ program
|
||||
return;
|
||||
}
|
||||
|
||||
const ClientManager = require("../clientManager");
|
||||
const ClientManager = require("../../clientManager");
|
||||
|
||||
var users = new ClientManager().getUsers();
|
||||
|
7
src/command-line/users/index.js
Normal file
7
src/command-line/users/index.js
Normal file
@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
require("./list");
|
||||
require("./add");
|
||||
require("./remove");
|
||||
require("./reset");
|
||||
require("./edit");
|
@ -3,8 +3,8 @@
|
||||
const colors = require("colors/safe");
|
||||
const program = require("commander");
|
||||
const fs = require("fs");
|
||||
const Helper = require("../helper");
|
||||
const Utils = require("./utils");
|
||||
const Helper = require("../../helper");
|
||||
const Utils = require("../utils");
|
||||
|
||||
program
|
||||
.command("list")
|
||||
@ -16,7 +16,7 @@ program
|
||||
return;
|
||||
}
|
||||
|
||||
const ClientManager = require("../clientManager");
|
||||
const ClientManager = require("../../clientManager");
|
||||
|
||||
if (Helper.config.public) {
|
||||
log.warn(`Users have no effect in ${colors.bold("public")} mode.`);
|
@ -3,8 +3,8 @@
|
||||
const colors = require("colors/safe");
|
||||
const program = require("commander");
|
||||
const fs = require("fs");
|
||||
const Helper = require("../helper");
|
||||
const Utils = require("./utils");
|
||||
const Helper = require("../../helper");
|
||||
const Utils = require("../utils");
|
||||
|
||||
program
|
||||
.command("remove <name>")
|
||||
@ -16,7 +16,7 @@ program
|
||||
return;
|
||||
}
|
||||
|
||||
const ClientManager = require("../clientManager");
|
||||
const ClientManager = require("../../clientManager");
|
||||
const manager = new ClientManager();
|
||||
|
||||
try {
|
@ -3,8 +3,8 @@
|
||||
const colors = require("colors/safe");
|
||||
const program = require("commander");
|
||||
const fs = require("fs");
|
||||
const Helper = require("../helper");
|
||||
const Utils = require("./utils");
|
||||
const Helper = require("../../helper");
|
||||
const Utils = require("../utils");
|
||||
|
||||
program
|
||||
.command("reset <name>")
|
||||
@ -16,7 +16,7 @@ program
|
||||
return;
|
||||
}
|
||||
|
||||
const ClientManager = require("../clientManager");
|
||||
const ClientManager = require("../../clientManager");
|
||||
|
||||
var users = new ClientManager().getUsers();
|
||||
|
Loading…
Reference in New Issue
Block a user