Class: CommandRegistry

vertx-shell-js/command_registry~ CommandRegistry

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
completion Completion the completion object
Source:

createProcess(line, handler)

Try to create a process from the command line tokens.
Parameters:
Name Type Description
line Array.<CliToken> the command line tokens
handler function the handler to be notified about process creation
Source:

registerCommand(command, doneHandler)

Parameters:
Name Type Description
command Command
doneHandler function
Source:

registrations() → {Array.<CommandRegistration>}

Source:
Returns:
  • the current command registrations
  • Type
    Array.<CommandRegistration>

unregisterCommand(commandName, doneHandler)

Parameters:
Name Type Description
commandName string
doneHandler function
Source: