Skip to main content

complete_answer

Function complete_answer 

Source
pub fn complete_answer(
    spec: &Spec,
    words: &[String],
    cword: usize,
    shell: &str,
) -> Result<CandidateAnswer>
Expand description

The reference implementation’s completion candidates, readable as data.

Re-exported rather than the whole cli module: the conformance comparison needs this one answer, and nothing else in here is a promise to anybody. Complete a partial command line while preserving path-fallback metadata.