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 help function.
The command action function.
This router for method chaining.
Loop over all registered commands.
Commands can only be retrieved after the router is activated.
The callback function to call for each command.
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