Rename ShellMethod.help() to value(), as it is the only mandatory attribute.
This commit is contained in:
@@ -48,7 +48,7 @@ public class Clear {
|
||||
@Autowired @Lazy
|
||||
private Terminal terminal;
|
||||
|
||||
@ShellMethod(help = "Clear the shell screen.")
|
||||
@ShellMethod("Clear the shell screen.")
|
||||
public void clear() {
|
||||
terminal.puts(InfoCmp.Capability.clear_screen);
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ public class Help {
|
||||
this.commandRegistry = commandRegistry;
|
||||
}
|
||||
|
||||
@ShellMethod(help = "Display help about available commands.", prefix = "-")
|
||||
@ShellMethod(value = "Display help about available commands.", prefix = "-")
|
||||
public CharSequence help(
|
||||
@ShellOption(defaultValue = ShellOption.NULL,
|
||||
valueProvider = CommandValueProvider.class,
|
||||
|
||||
@@ -41,7 +41,7 @@ public class Quit {
|
||||
*/
|
||||
public interface Command {}
|
||||
|
||||
@ShellMethod(help = "Exit the shell.", value = {"quit", "exit"})
|
||||
@ShellMethod(value = "Exit the shell.", key = {"quit", "exit"})
|
||||
public void quit() {
|
||||
throw new ExitRequest();
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public class Stacktrace {
|
||||
private ThrowableResultHandler throwableResultHandler;
|
||||
|
||||
|
||||
@ShellMethod(value = ThrowableResultHandler.DETAILS_COMMAND_NAME, help = "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