1
0
forked from noxious/server
This commit is contained in:
2024-12-28 21:26:31 +01:00
parent 4f1b9cf024
commit 5c94584cb2
4 changed files with 12 additions and 15 deletions

View File

@ -1,4 +1,5 @@
import { Server } from 'socket.io'
import { CommandRegistry } from '#application/console/commandRegistry'
import { ConsolePrompt } from '#application/console/consolePrompt'
import { LogReader } from '#application/console/logReader'
@ -13,9 +14,7 @@ export class ConsoleManager {
constructor() {
this.registry = new CommandRegistry()
this.prompt = new ConsolePrompt(
(command: string) => this.processCommand(command)
)
this.prompt = new ConsolePrompt((command: string) => this.processCommand(command))
this.logReader = new LogReader(process.cwd())
}
@ -53,4 +52,4 @@ export class ConsoleManager {
}
}
export default new ConsoleManager()
export default new ConsoleManager()