Class DefaultScriptRunner

java.lang.Object
org.jline.shell.impl.DefaultScriptRunner
All Implemented Interfaces:
ScriptRunner

public class DefaultScriptRunner extends Object implements ScriptRunner
Default implementation of ScriptRunner that reads a script file line by line and executes each line through the dispatcher.

Features:

  • Skips blank lines and lines starting with # (comments)
  • Supports \ line continuation (backslash at end of line joins with the next line)
  • Each complete line is fed to CommandDispatcher.execute(String)
Since:
4.0
See Also: