aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/ConsoleInput.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2021-07-04 03:59:50 +0300
committerRblSb <msrblsb@gmail.com>2021-07-05 17:04:25 +0300
commitede45cea8706eb8540e466df9861c2af8ebf9c44 (patch)
tree74a20a6f082173378f918b48b08542881f31749a /src/server/ConsoleInput.hx
parent265b3e1fb56bb0e5f797b3b35227a616b108a0c3 (diff)
Reformat
Diffstat (limited to 'src/server/ConsoleInput.hx')
-rw-r--r--src/server/ConsoleInput.hx15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/server/ConsoleInput.hx b/src/server/ConsoleInput.hx
index 3c287af..9b8faf3 100644
--- a/src/server/ConsoleInput.hx
+++ b/src/server/ConsoleInput.hx
@@ -1,13 +1,14 @@
package server;
+import haxe.Json;
import haxe.extern.EitherType as Or;
import haxe.io.Path;
-import haxe.Json;
-import sys.FileSystem;
-import sys.io.File;
+import js.Node.process;
import js.html.Console;
import js.node.Readline;
-import js.Node.process;
+import sys.FileSystem;
+import sys.io.File;
+
using StringTools;
private typedef CommandData = {
@@ -23,7 +24,6 @@ private enum abstract Command(String) from String {
}
class ConsoleInput {
-
final main:Main;
final commands:Map<Command, CommandData> = [
AddAdmin => {
@@ -118,7 +118,9 @@ class ConsoleInput {
Utils.ensureDir(main.logsDir);
final names = FileSystem.readDirectory(main.logsDir)
.filter(s -> s.endsWith(".json"));
- for (name in names) trace(Path.withoutExtension(name));
+ for (name in names) {
+ trace(Path.withoutExtension(name));
+ }
case Exit:
main.exit();
@@ -150,5 +152,4 @@ class ConsoleInput {
final desc = list.join("\n");
trace('Unknown command "$line". List:\n$desc');
}
-
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage