Write tutorial in ref doc
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user