bootstrap::core::config::flags

Function get_completion

Source
pub fn get_completion<G: Generator>(shell: G, path: &Path) -> Option<String>
Expand description

Returns the shell completion for a given shell, if the result differs from the current content of path. If path does not exist, always returns Some.