pub async fn update_plugin_op(plugin: &str, scope: &str) -> PluginUpdateResultExpand description
Update a plugin to the latest version.
This function performs a NON-INPLACE update:
- Gets the plugin info from the marketplace
- For remote plugins: downloads to temp dir and calculates version
- For local plugins: calculates version from marketplace source
- If version differs from currently installed, copies to new versioned cache directory
- Updates installation in V2 file (memory stays unchanged until restart)
- Cleans up old version if no longer referenced by any installation
§Arguments
plugin- Plugin name or plugin@marketplace identifierscope- Scope to update. Unlike install/uninstall/enable/disable, managed scope IS allowed.
§Returns
Result indicating success/failure with version info