shrs_completion
more completions for shrs
This is a plugin for shrs.
Using this plugin
First add this plugin to your dependencies
= { = "0.0.6" }
Then include this plugin when initializing shrs
use *;
use *;
more completions for shrs
This is a plugin for shrs.
First add this plugin to your dependencies
shrs_completion = { version = "0.0.6" }
Then include this plugin when initializing shrs
use shrs::prelude::*;
use shrs_completion::completions::*;
fn main() {
let mut mycompleter = DefaultCompleter::default();
ssh_completion(&mut mycompleter);
let myline = LineBuilder::default()
.with_completer(mycompleter)
.build()
.unwrap();
let myshell = ShellBuilder::default()
.with_readline(myline)
.build()
.unwrap();
myshell.run().unwrap();
}