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

Function ExtensionAllPath

src/cmd/path.go:67–79  ·  view source on GitHub ↗

ExtensionAllPath returns paths of all extension files

()

Source from the content-addressed store, hash-verified

65
66// ExtensionAllPath returns paths of all extension files
67func ExtensionAllPath() (string, error) {
68 exts := featureSection.Key("extensions").Strings("|")
69 results := []string{}
70 for _, v := range exts {
71 path, err := utils.GetExtensionPath(v)
72 if err != nil {
73 path = utils.Red("Extension " + v + " not found")
74 }
75 results = append(results, path)
76 }
77
78 return strings.Join(results, "\n"), nil
79}
80
81// AppPath return path of app directory
82func AppPath(name string) (string, error) {

Callers 2

mainFunction · 0.92
AllPathsFunction · 0.85

Calls 2

GetExtensionPathFunction · 0.92
RedFunction · 0.92

Tested by

no test coverage detected