Creates a new router instance.
Activates the router.
Once activated, commands can be retrieved but not added.
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.
Depends:
Example
Example