Skip to main content

Module update

Module update 

Source
Expand description

yosh-plugin update: structural TOML rewrite of [[plugin]].version by plugin name, replacing the legacy String::replacen flow.

See docs/superpowers/specs/2026-04-28-plugin-update-toml-edit-design.md.

Structs§

PluginUpdateResult
UpdateOutcome

Enums§

SkipReason
UpdateStatus
Result of trying to update a single plugin.

Functions§

set_plugin_version
Pure TOML helper: locate the [[plugin]] table whose name equals name, then set its version field to new_version. Returns Err on missing/duplicate match or on structural anomalies in the plugin key.
update
Orchestration entry point. Reads config_path, fetches the latest version of each GitHub plugin (filtered by name_filter if set), rewrites matching [[plugin]].version fields in a single DocumentMut, and writes the result back exactly once if anything changed.