public class SystemRegistryImpl
extends Object
implements SystemRegistry
Aggregate command registries.
| Modifiers | Name | Description |
|---|---|---|
protected static class |
SystemRegistryImpl.CommandData |
|
enum |
SystemRegistryImpl.Pipe |
|
static class |
SystemRegistryImpl.UnknownCommandException |
| Modifiers | Name | Description |
|---|---|---|
protected ConfigurationPath |
configPath |
|
protected Parser |
parser |
|
protected Supplier<Path> |
workDir |
| Constructor and description |
|---|
SystemRegistryImpl(Parser parser, Terminal terminal, Supplier<Path> workDir, ConfigurationPath configPath) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addCompleter(Completer completer) |
|
public void |
cleanUp() |
|
public void |
close() |
|
public Map<String, String> |
commandAliases() |
|
public CmdDesc |
commandDescription(List<String> args) |
|
public CmdDesc |
commandDescription(CmdLine line) |
|
public List<String> |
commandInfo(String command) |
|
public Set<String> |
commandNames() |
|
public SystemCompleter |
compileCompleters() |
|
public Completer |
completer() |
|
public ConsoleEngine |
consoleEngine() |
|
public Object |
consoleOption(String name) |
<T> |
public T |
consoleOption(String name, T defVal) |
|
public Object |
execute(String line) |
|
public Collection<String> |
getPipeNames() |
|
public SystemRegistryImpl |
groupCommandsInHelp(boolean commandGroups) |
|
public boolean |
hasCommand(String command) |
|
public void |
initialize(File script) |
|
public Object |
invoke(String command, Object args) |
|
public boolean |
isCommandAlias(String command) |
|
public boolean |
isCommandOrScript(ParsedLine line) |
|
public boolean |
isCommandOrScript(String command) |
|
public void |
register(String command, CommandRegistry subcommandRegistry)Register subcommand registry |
|
public void |
rename(SystemRegistryImpl.Pipe pipe, String name) |
|
public void |
renameLocal(String command, String newName) |
|
public void |
setCommandRegistries(CommandRegistry commandRegistries) |
|
public void |
setConsoleOption(String name, Object value) |
|
public void |
setGroupCommandsInHelp(boolean commandGroups) |
|
public void |
setScriptDescription(Function<CmdLine, CmdDesc> scriptDescription) |
|
public Terminal |
terminal() |
|
public void |
trace(Throwable exception) |
|
public void |
trace(boolean stack, Throwable exception) |
Register subcommand registry
command - main commandsubcommandRegistry - subcommand registryCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.