pub fn search( query: &str, config: &Config, reg_or_index: Option<RegistryOrIndex>, limit: u32 ) -> CargoResult<()>