You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to write a REPL application that works like mysql-client. Using
@ShellMethod(value = "READ data from DB.", key={"select", "SELECT"})
publicStringselect(
@ShellOption(arity = Integer.MAX_VALUE, valueProvider = TableNameValueProvider.class)
String[] sql) {
it's easy acquire something like SELECT * FROM books. But my TableNameValueProvider class is triggered only if I write SELECT * FROM --sql [TAB] and works one time only:
> SELECT * FROM --sql books JOIN -
--help -h
I tried also with @command / @option / @OptionValues and w/ the CommandRegistration.builder() too. But I have always the same behaviour. I think that an implicit (boolean) annotation attribute will be perfect to solve this issue.
The text was updated successfully, but these errors were encountered:
I would like to write a REPL application that works like mysql-client. Using
it's easy acquire something like
SELECT * FROM books
. But my TableNameValueProvider class is triggered only if I writeSELECT * FROM --sql [TAB]
and works one time only:I tried also with @command / @option / @OptionValues and w/ the CommandRegistration.builder() too. But I have always the same behaviour. I think that an implicit (boolean) annotation attribute will be perfect to solve this issue.
The text was updated successfully, but these errors were encountered: