Class CommandGroupAdapter

java.lang.Object
org.jline.console.impl.CommandGroupAdapter
All Implemented Interfaces:
CommandGroup

public class CommandGroupAdapter extends Object implements CommandGroup
Adapts an old CommandRegistry to the new CommandGroup interface.

This bridge allows existing command registries (e.g., Builtins, GroovyCommand) to be used with the new Shell and CommandDispatcher APIs.

Each command in the registry is wrapped as a Command that delegates execution back to CommandRegistry.invoke(CommandRegistry.CommandSession, String, Object...).

Since:
4.0
See Also: