Skip to main content

DynamicOptionsProvider

Type Alias DynamicOptionsProvider 

Source
pub type DynamicOptionsProvider = fn(partial: &str, context: &[&str]) -> Vec<String>;
Expand description

A function that provides additional option candidates based on context.

Called during leaf completion to discover extra key= options that aren’t statically declared. For example, reading a workload file referenced on the command line and returning its declared parameter names as completable options.

Receives the partial word being typed and the full context of completed words. Returns additional option names (e.g., ["keyspace=", "table="]).