Trait completest::Runtime

source ·
pub trait Runtime: Debug {
    // Required methods
    fn home(&self) -> &Path;
    fn register(&mut self, name: &str, content: &str) -> Result<()>;
    fn complete(&mut self, input: &str, term: &Term) -> Result<String>;
}
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<()>

Register a completion script

source

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

Get the output from typing input into the shell

Implementors§