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§
Sourcefn run_completion_function(
&mut self,
func_name: &str,
context: &ShellCompletionContext,
zstyle: &ZStyleStore,
) -> CompletionResult
fn run_completion_function( &mut self, func_name: &str, context: &ShellCompletionContext, zstyle: &ZStyleStore, ) -> CompletionResult
Run a completion function by name
Sourcefn has_completion_function(&self, name: &str) -> bool
fn has_completion_function(&self, name: &str) -> bool
Check if a completion function exists
Sourcefn get_completer(&self, command: &str) -> Option<String>
fn get_completer(&self, command: &str) -> Option<String>
Get the completion function for a command