pub trait Runtime: Debug {
    // Required methods
    fn name(&self) -> &'static str;
    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>;
}

Required Methods§

source

fn name(&self) -> &'static str

source

fn home(&self) -> &Path

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§