forked from noxious/server
format
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user