Re: [PATCH 09/12] vsh: Deduplicate filtering in vshReadlineCommandGenerator()

2021-02-09 Thread Jonathon Jongsma
On Thu, 4 Feb 2021 15:13:34 +0100 Michal Privoznik wrote: > This is what we do for completer callbacks: we let them generate > all possible outputs ignoring any partial input (e.g. prefix of a > domain name) and then use vshCompleterFilter() to filter out > those strings which don't fit the

[PATCH 09/12] vsh: Deduplicate filtering in vshReadlineCommandGenerator()

2021-02-04 Thread Michal Privoznik
This is what we do for completer callbacks: we let them generate all possible outputs ignoring any partial input (e.g. prefix of a domain name) and then use vshCompleterFilter() to filter out those strings which don't fit the partial input (prefix). The same algorithm is implemented in