shrs_completion

Crates.ioshrs_completion
lib.rsshrs_completion
version0.0.6
sourcesrc
created_at2024-01-02 20:44:47.320885
updated_at2024-06-01 04:55:24.259277
descriptionMore completions for shrs
homepagehttps://mrpicklepinosaur.github.io/shrs/
repositoryhttps://github.com/MrPicklePinosaur/shrs
max_upload_size
id1086673
size59,489
Daniel Liu (MrPicklePinosaur)

documentation

README

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();
}
Commit count: 440

cargo fmt