/** * Return a shell scope for interactive evaluation * * @return a shell scope * @throws IOException an I/O related exception occurred */ public Scriptable getShellScope(RingoWorker worker) throws IOException { Repository repository = new FileRepository(""); repository.setAbsolute(true); Scriptable protoScope = mainScope != null ? mainScope : globalScope; return new ModuleScope("<shell>", repository, protoScope, worker); }