Closed
Description
Hello, I am providing in my application an ExtendedFileValueProvider which does not stop if comes a directory (i.e. the completion proposal is not complete). Today I had to extended some classes to do this, and I am wondering if it could be included in spring shell.
The aim is to add complete
boolean field in CompletionProposal
in order to be able to get this value in CompleterAutoConfiguration.CompleterAdapter#complete
:
proposals.stream()
.map(p -> new Candidate(
p.dontQuote() ? p.value() : cpl.emit(p.value()).toString(),
p.displayText(),
p.category(),
p.description(),
null,
null,
true) --> here we can set p.complete() instead of true
)
.forEach(candidates::add);
This way the class implementing ValueProvider
can decide if the proposal is complete or not.
Do you think it could be an improvement in spring shell library ?
Thanks a lot !