package restx.shell; import com.google.common.base.Optional; import com.google.common.collect.ImmutableList; import jline.console.completer.Completer; import java.io.IOException; /** * User: xavierhanin * Date: 4/9/13 * Time: 10:06 PM */ public interface ShellCommand { Optional<? extends ShellCommandRunner> match(String line); void help(Appendable appendable) throws IOException; void man(Appendable appendable) throws IOException; Iterable<Completer> getCompleters(); ImmutableList<String> getAliases(); void start(RestxShell shell) throws IOException; }