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§
Enums§
- Skip
Reason - Update
Status - Result of trying to update a single plugin.
Functions§
- set_
plugin_ version - Pure TOML helper: locate the
[[plugin]]table whosenameequalsname, then set itsversionfield tonew_version. ReturnsErron missing/duplicate match or on structural anomalies in thepluginkey. - update
- Orchestration entry point. Reads
config_path, fetches the latest version of each GitHub plugin (filtered byname_filterif set), rewrites matching[[plugin]].versionfields in a singleDocumentMut, and writes the result back exactly once if anything changed.