MCPcopy
hub / github.com/spicetify/cli / RefreshExtensions

Function RefreshExtensions

src/cmd/apply.go:174–186  ·  view source on GitHub ↗

RefreshExtensions pushes all extensions to Spotify

(list ...string)

Source from the content-addressed store, hash-verified

172
173// RefreshExtensions pushes all extensions to Spotify
174func RefreshExtensions(list ...string) {
175 spinner, _ := utils.Spinner.Start("Refreshing extensions")
176 if len(list) == 0 {
177 list = featureSection.Key("extensions").Strings("|")
178 }
179
180 if len(list) > 0 {
181 pushExtensions("", list...)
182 spinner.Success("Refreshed extensions")
183 } else {
184 spinner.Info("No extensions to update")
185 }
186}
187
188// CheckStates examines both Backup and Spotify states to prompt informative
189// instruction for users

Callers 2

mainFunction · 0.92
ApplyFunction · 0.85

Calls 1

pushExtensionsFunction · 0.85

Tested by

no test coverage detected