3 releases

0.0.5 Apr 16, 2024
0.0.4 Feb 2, 2024
0.0.3 Jan 2, 2024

#7 in #shrs

Download history 3/week @ 2024-02-01 7/week @ 2024-02-15 21/week @ 2024-02-22 10/week @ 2024-02-29 11/week @ 2024-03-07 54/week @ 2024-03-14 16/week @ 2024-03-28 2/week @ 2024-04-04 155/week @ 2024-04-11 15/week @ 2024-04-18

170 downloads per month

MIT/Apache

22KB
57 lines

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.5" }

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

Dependencies

~0–16MB
~176K SLoC