Trait completest::Runtime

source ·
pub trait Runtime {
    // 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>;
}

Required Methods§

source

fn home(&self) -> &Path

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§

source§

impl Runtime for BashRuntime

Available on Unix only.
source§

impl Runtime for ElvishRuntime

Available on Unix only.
source§

impl Runtime for FishRuntime

Available on Unix only.
source§

impl Runtime for NuRuntime

Available on crate feature nu only.
source§

impl Runtime for ZshRuntime

Available on Unix only.