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

Function ThemeAllAssetsPath

src/cmd/path.go:41–56  ·  view source on GitHub ↗

ThemeAllAssetsPath returns paths of all theme's assets

()

Source from the content-addressed store, hash-verified

39
40// ThemeAllAssetsPath returns paths of all theme's assets
41func ThemeAllAssetsPath() (string, error) {
42 InitSetting()
43
44 if len(themeFolder) == 0 {
45 return "", errors.New(`config "current_theme" is blank`)
46 }
47
48 results := []string{
49 themeFolder,
50 filepath.Join(themeFolder, "color.ini"),
51 filepath.Join(themeFolder, "user.css"),
52 filepath.Join(themeFolder, "theme.js"),
53 filepath.Join(themeFolder, "assets")}
54
55 return strings.Join(results, "\n"), nil
56}
57
58// ExtensionPath return path of extension file
59func ExtensionPath(name string) (string, error) {

Callers 2

mainFunction · 0.92
AllPathsFunction · 0.85

Calls 1

InitSettingFunction · 0.85

Tested by

no test coverage detected