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

Function UserAsset

src/apply/apply.go:124–130  ·  view source on GitHub ↗

UserAsset .

(appsFolderPath, themeFolder string)

Source from the content-addressed store, hash-verified

122
123// UserAsset .
124func UserAsset(appsFolderPath, themeFolder string) {
125 var assetsPath = getAssetsPath(themeFolder)
126 var xpuiPath = filepath.Join(appsFolderPath, "xpui")
127 if err := utils.Copy(assetsPath, xpuiPath, true, nil); err != nil {
128 utils.Fatal(err)
129 }
130}
131
132func htmlMod(htmlPath string, flags Flag) {
133 if len(flags.Extension) == 0 &&

Callers 1

refreshThemeAssetsFunction · 0.92

Calls 3

CopyFunction · 0.92
FatalFunction · 0.92
getAssetsPathFunction · 0.85

Tested by

no test coverage detected