4 releases

0.0.6 Jun 1, 2024
0.0.5 Apr 16, 2024
0.0.4 Feb 2, 2024
0.0.3 Jan 2, 2024

#1052 in Command-line interface

Download history 170/week @ 2024-05-28 14/week @ 2024-06-04 6/week @ 2024-06-11

245 downloads per month

MIT/Apache

37KB
66 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.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();
}

Dependencies

~16–33MB
~471K SLoC