Write tutorial in ref doc

This commit is contained in:
Eric Bottard
2017-08-23 21:09:40 +02:00
parent a191d113a4
commit 56adc9ab5a
4 changed files with 116 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ public class Script {
public interface Command {
}
@ShellMethod(value = "Read and execute commands from a file")
@ShellMethod(value = "Read and execute commands from a file.")
public void script(File file) throws IOException {
Reader reader = new FileReader(file);
try (FileInputProvider inputProvider = new FileInputProvider(reader, parser)) {

View File

@@ -50,7 +50,7 @@ public class Stacktrace {
private ThrowableResultHandler throwableResultHandler;
@ShellMethod(key = ThrowableResultHandler.DETAILS_COMMAND_NAME, value = "Display the full stacktrace of the last error")
@ShellMethod(key = ThrowableResultHandler.DETAILS_COMMAND_NAME, value = "Display the full stacktrace of the last error.")
public void stacktrace() {
if (throwableResultHandler.getLastError() != null) {
throwableResultHandler.getLastError().printStackTrace(terminal.writer());