shrs_completion 0.0.6

More completions for shrs
Documentation

shrs_completion

more completions for shrs

crates.io MIT/Apache 2.0

This is a plugin for shrs.

Using this plugin

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();
}