pub fn complete(cwd: &str, line: &[u8]) -> (usize, Vec<Cand>)
Returns (token_start, candidates) for the text before the cursor.
(token_start, candidates)