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

Function refreshThemeJS

src/cmd/apply.go:220–230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218}
219
220func refreshThemeJS() {
221 spinner, _ := utils.Spinner.Start("Updating theme's script")
222 if err := utils.CopyFile(
223 filepath.Join(themeFolder, "theme.js"),
224 filepath.Join(appDestPath, "xpui", "extensions")); err != nil {
225 spinner.Fail("Failed to update theme's script")
226 utils.PrintError(err.Error())
227 } else {
228 spinner.Success("Updated theme's script")
229 }
230}
231
232func pushExtensions(destExt string, list ...string) {
233 var err error

Callers 2

RefreshThemeFunction · 0.85
WatchFunction · 0.85

Calls 2

CopyFileFunction · 0.92
PrintErrorFunction · 0.92

Tested by

no test coverage detected