Skip to main content

CompletionRunner

Trait CompletionRunner 

Source
pub trait CompletionRunner {
    // Required methods
    fn run_completion_function(
        &mut self,
        func_name: &str,
        context: &ShellCompletionContext,
        zstyle: &ZStyleStore,
    ) -> CompletionResult;
    fn has_completion_function(&self, name: &str) -> bool;
    fn get_completer(&self, command: &str) -> Option<String>;
}
Expand description

Trait for shell interpreters that can run completion functions

Required Methods§

Source

fn run_completion_function( &mut self, func_name: &str, context: &ShellCompletionContext, zstyle: &ZStyleStore, ) -> CompletionResult

Run a completion function by name

Source

fn has_completion_function(&self, name: &str) -> bool

Check if a completion function exists

Source

fn get_completer(&self, command: &str) -> Option<String>

Get the completion function for a command

Implementors§