spring-shell
spring-shell copied to clipboard
ValueProvider not invoked for array types when autocompleting
I have a ValueProvider that returns a list of possible values say A,B,C,D
@ShellOption(defaultValue = "", valueProvider = EnvironmentAwareClusterProvider.class) String[] clusters)
The first tab invocation brings up a list of options
--clusters <TAB>
A
B
C
D
The second tab invocation brings up only commands, but it should also offer the valueProvider options again, because this is an array, so it can have more than one value.
--clusters A <TAB>
--help
So it should look like this
--clusters A <TAB>
--help
A
B
C
D
We should also try to see if there's arity settings as it can give upper bound size to array/collection.
is this tagged correctly? seems to be the only thing in 3.1.x milestone....