use of org.jline.reader.Widget in project felix by apache.
the class Builtin method widget.
public void widget(final CommandSession session, String[] argv) throws Exception {
java.util.function.Function<String, Widget> creator = func -> () -> {
try {
session.execute(func);
} catch (Exception e) {
// TODO: log exception ?
return false;
}
return true;
};
Process process = Process.Utils.current();
Commands.widget(Shell.getReader(session), process.out(), process.err(), creator, argv);
}
Aggregations