Skip to main content

complete

Function complete 

Source
pub fn complete(tree: &CommandTree, words: &[&str]) -> Vec<String>
Expand description

Compute completion candidates for the given input words.

Options already present on the command line are excluded. Both --flag and bare key= styles are supported and deduplicated. Dynamic options from context providers are included.

Always operates at tap level 1. For stratified completion where successive tabs reveal more candidates, use complete_at_tap.