customize completion candidates for some args

This commit is contained in:
pedrocarlo 2025-04-04 17:39:09 -03:00
parent fd3335908c
commit 57af9c71ba
4 changed files with 36 additions and 11 deletions

View file

@ -107,6 +107,7 @@ impl<C: Parser + Send + Sync + 'static> SqlCompleter<C> {
mut line: &str,
mut pos: usize,
) -> rustyline::Result<(usize, Vec<Pair>)> {
// TODO maybe check to see if the line is empty and then just output the command names
line = &line[1..];
pos = pos - 1;