Class GogoCommandGroup

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

public class GogoCommandGroup extends Object implements CommandGroup
A CommandGroup that wraps a legacy CommandRegistry's commands as shell Commands.

This provides a migration path from the console module's CommandRegistry API to the shell module's CommandGroup API. Each command in the registry is wrapped as a shell Command that delegates to the registry's CommandRegistry.invoke(CommandRegistry.CommandSession, String, Object...) method.

Example:

 CommandRegistry registry = ...; // existing Gogo/console registry
 dispatcher.addGroup(new GogoCommandGroup("Gogo", registry));
 
Since:
4.0