| Crates.io | shrs_completion |
| lib.rs | shrs_completion |
| version | 0.0.6 |
| created_at | 2024-01-02 20:44:47.320885+00 |
| updated_at | 2024-06-01 04:55:24.259277+00 |
| description | More completions for shrs |
| homepage | https://mrpicklepinosaur.github.io/shrs/ |
| repository | https://github.com/MrPicklePinosaur/shrs |
| max_upload_size | |
| id | 1086673 |
| size | 59,489 |
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();
}