Enable History.
This commit is contained in:
parent
cbb50c1a87
commit
d61f6bf9e5
@ -5,6 +5,7 @@ import java.io.IOException;
|
||||
import de.hsadmin.jscli.exception.JSCliException;
|
||||
import jline.ConsoleReader;
|
||||
import jline.SimpleCompletor;
|
||||
import jline.History;
|
||||
|
||||
public class ConsoleWrapper implements PasswordReader {
|
||||
|
||||
@ -16,6 +17,7 @@ public class ConsoleWrapper implements PasswordReader {
|
||||
try {
|
||||
cons = new ConsoleReader();
|
||||
cons.setDefaultPrompt(prompt);
|
||||
cons.setHistory(new History());
|
||||
} catch (IOException e) {
|
||||
throw new JSCliException(e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user