Skip to content

Commit

Permalink
[SQLLINE-35] Make SqlLine.begin public
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhyde committed May 14, 2016
1 parent 20b1cce commit 54a9869
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/java/sqlline/SqlLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -621,11 +621,16 @@ Status initArgs(String[] args, DispatchCallback callback) {
}

/**
* Start accepting input from stdin, and dispatch it to the appropriate
* Runs SqlLine, accepting input from the given input stream,
* dispatching it to the appropriate
* {@link CommandHandler} until the global variable <code>exit</code> is
* true.
*
* <p>Before you invoke this method, you can redirect output by
* calling {@link #setOutputStream(PrintStream)}
* and/or {@link #setErrorStream(PrintStream)}.
*/
Status begin(String[] args, InputStream inputStream,
public Status begin(String[] args, InputStream inputStream,
boolean saveHistory) throws IOException {
try {
opts.load();
Expand Down

0 comments on commit 54a9869

Please sign in to comment.