Creates a new router instance.
Checks if the router is active.
true if the router is active, false otherwise.
Activates the router.
Once activated, commands can be retrieved but not added.
This router for method chaining.
Adds a command in the router.
Commands can only be added before the router is activated.
The command spec object.
The command action function.
This router for method chaining.
Retrieves a command for a specific name.
Commands can only be retrieved after the router is activated.
The name of the command.
The command object, or undefined if not found.
StaticregisterRegisters the router as a singleton in the DI container.
The DI container to register in.
StaticresolveResolves the router from the DI container.
The DI container to resolve from.
The router instance.
Represents the repl-server router.
The router acts as root of a REPL server and handles the routing commants to their respective handlers.