Trait completest_pty::Runtime

source ·
pub trait Runtime: Debug {
    // Required methods
    fn home(&self) -> &Path;
    fn register(&mut self, name: &str, content: &str) -> Result<(), Error>;
    fn complete(&mut self, input: &str, term: &Term) -> Result<String, Error>;
}
Available on Unix only.
Expand description

Run completions for a shell

Required Methods§

source

fn home(&self) -> &Path

Location of the runtime’s home directory

source

fn register(&mut self, name: &str, content: &str) -> Result<(), Error>

Register a completion script

source

fn complete(&mut self, input: &str, term: &Term) -> Result<String, Error>

Get the output from typing input into the shell

Implementors§