aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@gmail.com>2019-08-05 22:05:02 -0400
committerAndrew Lee <alee14498@gmail.com>2019-08-05 22:05:02 -0400
commit557e496d3c8e41cc7c98bee5d425315922984056 (patch)
tree2b2e4b165b3c7bbcd17b2089f498f2912995c263 /app.js
parent4f82b9ffe4a68d4a90213e50c21d763f57c49d2d (diff)
downloadalp-website-557e496d3c8e41cc7c98bee5d425315922984056.tar.gz
alp-website-557e496d3c8e41cc7c98bee5d425315922984056.tar.bz2
alp-website-557e496d3c8e41cc7c98bee5d425315922984056.zip
Tweaking and changing README
Diffstat (limited to 'app.js')
-rw-r--r--app.js19
1 files changed, 15 insertions, 4 deletions
diff --git a/app.js b/app.js
index 34b5587..86374e9 100644
--- a/app.js
+++ b/app.js
@@ -42,8 +42,19 @@ const rl = readline.createInterface({
output: process.stdout
});
+function rlHelp() {
+ console.log("---------HELP-------");
+ console.log("help - Displays help");
+ console.log("clear - Clears the console");
+ console.log("exit - Exits Application");
+ console.log("--------------------");
+}
+
rl.on("line", (input) => {
switch (input) {
+ case "help":
+ rlHelp()
+ break;
case "clear":
console.clear();
break;
@@ -56,7 +67,7 @@ rl.on("line", (input) => {
exitWebsite();
break;
default:
- console.log("[X] Error: Command not found. Use clear or exit.");
+ console.log("[X] Error: Command not found. Type help.");
break;
}
});
@@ -68,7 +79,7 @@ app.set('view engine', 'ejs');
app.set("views", path.join(__dirname, "views"));
app.use(express.static(path.join(__dirname, "public")));
-app.use(logger)
+app.use(logger);
app.use("/", require("./routes/index"));
app.use("/projects", require("./routes/projects"));
@@ -81,6 +92,6 @@ app.use((req, res) => {
});
app.listen(port, () => {
- //Hook.success("Alee Productions Website","Website has been loaded!")
- console.log(`[>] Website listening on port ${port}!`)
+ //Hook.success("Alee Productions Website","Website has been loaded!");
+ console.log(`[>] Website listening on port ${port}!`);
}); \ No newline at end of file