[go: up one dir, main page]

Crate completest_pty

Source
Available on Unix only.
Expand description

Run completions for your program

§Example

let term = completest_pty::Term::new();

let mut runtime = completest_pty::BashRuntime::new(bin_root, home).unwrap();
runtime.register("foo", completion_script).unwrap();
let output = runtime.complete("foo \t\t", &term).unwrap();

Structs§

BashRuntime
Bash runtime
BashRuntimeBuilder
Abstract factory for BashRuntime
ElvishRuntime
Elvish runtime
ElvishRuntimeBuilder
Abstract factory for ElvishRuntime
FishRuntime
Fish runtime
FishRuntimeBuilder
Abstract factory for FishRuntime
Term
Terminal that shell’s will run completions in
ZshRuntime
Zsh runtime
ZshRuntimeBuilder
Abstract factory for ZshRuntime

Traits§

Runtime
Run completions for a shell
RuntimeBuilder
Abstract factory for Runtime