public interface CommandRegistry
| Modifier and Type | Method and Description |
|---|---|
static Completers.SystemCompleter |
aggregateCompleters(CommandRegistry... commandRegistries)
Aggregate SystemCompleters of commandRegisteries
|
Map<String,String> |
commandAliases()
Returns a map of alias-to-command names known by this registry.
|
Widgets.CmdDesc |
commandDescription(String command)
Returns a command description for use in the JLine Widgets framework.
|
List<String> |
commandInfo(String command)
Returns a short info about command known by this registry.
|
Set<String> |
commandNames()
Returns the command names known by this registry.
|
Completers.SystemCompleter |
compileCompleters()
Returns a
SystemCompleter that can provide detailed completion
information for all registered commands. |
static Completers.SystemCompleter |
compileCompleters(CommandRegistry... commandRegistries)
Aggregate and compile SystemCompleters of commandRegisteries
|
boolean |
hasCommand(String command)
Returns whether a command with the specified name is known to this registry.
|
static Completers.SystemCompleter aggregateCompleters(CommandRegistry... commandRegistries)
static Completers.SystemCompleter compileCompleters(CommandRegistry... commandRegistries)
Set<String> commandNames()
Map<String,String> commandAliases()
List<String> commandInfo(String command)
boolean hasCommand(String command)
command - the command name to testCompleters.SystemCompleter compileCompleters()
SystemCompleter that can provide detailed completion
information for all registered commands.Widgets.CmdDesc commandDescription(String command)
command - name of the command whose description to returnCopyright © 2020. All rights reserved.