blob: a8ac495e36551360921dacd064d29ffacbb6da23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
use cli_utils::string_vec;
use crate::systems::comp::context::CompletionContext;
pub fn comp(ctx: CompletionContext) -> Option<Vec<String>> {
if ctx.current_word.starts_with('-') {
return Some(string_vec![
"-i", "--insert", "-Q", "--query", "-e", "--erase", "--to",
]);
}
if ctx.previous_word == "--to" {
return Some(vec![]);
}
None
}
|