Class AbstractCommand

java.lang.Object
org.jline.shell.impl.AbstractCommand
All Implemented Interfaces:
Command

public abstract class AbstractCommand extends Object implements Command
Base implementation of Command that stores name and aliases.

Example:

 Command echo = new AbstractCommand("echo", "e") {
     @Override
     public Object execute(CommandSession session, String[] args) {
         session.out().println(String.join(" ", args));
         return null;
     }
 };
 
Since:
4.0
See Also: