new CommandRegistry()
A registry that contains the commands known by a shell.
- Source:
Methods
-
complete(completion)
-
Perform completion, the completion argument will be notified of the completion progress.
Parameters:
Name Type Description completionCompletion the completion object - Source:
-
createProcess(line, handler)
-
Try to create a process from the command line tokens.
Parameters:
Name Type Description lineArray.<CliToken> the command line tokens handlerfunction the handler to be notified about process creation - Source:
-
registerCommand(command, doneHandler)
-
Parameters:
Name Type Description commandCommand doneHandlerfunction - Source:
-
registrations() → {Array.<CommandRegistration>}
-
- Source:
Returns:
-
the current command registrations
-
- Type
- Array.<CommandRegistration>
-
unregisterCommand(commandName, doneHandler)
-
Parameters:
Name Type Description commandNamestring doneHandlerfunction - Source: