INNER CODE UNIT · Rust
update_plugin_from_url
Drew-Alleman/DataSurgeon · src/plugins/mod.rs:364
pub fn update_plugin_from_url(url: &str) -> bool {
// Remove existing plugins from the URL
let removed = remove_plugins_from_url(url);
// If any plugins were removed, add the new plugin from the URL
if removed {
add_plugin_from_url(url)
} else {
println!("[-] Error: No existing plugin found with the given URL: {}", url);
false
}
}
// Updates all installed plugins by their URLs
pub fn update_all_plugins() {
// Load existing plugins
let existing_plugins = load_plugins();