3 releases

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

#900 in Command-line interface

Download history 3/week @ 2024-01-29 15/week @ 2024-02-19 23/week @ 2024-02-26 65/week @ 2024-03-11 18/week @ 2024-04-01 170/week @ 2024-04-15

188 downloads per month

MIT/Apache

37KB
72 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

~15–30MB
~437K SLoC