Skip to content

feat(pkg): add update subcommand for modules - #3955

Open
Mralimoh wants to merge 1 commit into
spicetify:v3-betafrom
Mralimoh:feat/pkg-update
Open

Mralimoh wants to merge 1 commit into
spicetify:v3-betafrom
Mralimoh:feat/pkg-update

Conversation

@Mralimoh

Copy link
Copy Markdown

Summary

Implements the missing update subcommand for spicetify pkg, allowing users to update installed modules either individually or all at once.

Changes

  • CLI & Dispatcher: Added the update action to CliPkgAction and PkgAction with an optional id argument, covered under the standard mutation guard.
  • Batch & Single Updates:
    • spicetify pkg update <id>: Updates the target module to the latest version resolved from the vault catalog.
    • spicetify pkg update: Scans all currently installed modules and updates those that have a newer version available.
  • Lifecycle Management:
    • Compares versions via should_stage and resolves the target semver using resolve_version.
    • Downloads and verifies artifacts against the vault checksum.
    • Automatically updates the active link with enable_module.
    • Prunes superseded package versions from the store directory to avoid disk clutter.

@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 8ca57d4a-989e-4205-8047-db68685a09d0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant