Skip to main content

Completer

Type Alias Completer 

Source
pub type Completer = fn(&CompleteCtx<'_>) -> Vec<Candidate<'static>>;
Expand description

A function that answers for one argument or flag value.

The Rust counterpart of a spec’s run=, and the reason it is a plain fn rather than a closure: it lives in a &'static table beside the parse tables, and a table entry cannot capture anything.