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

Function DisplayConfig

src/cmd/config.go:81–94  ·  view source on GitHub ↗

DisplayConfig displays value of requested config field

(field string)

Source from the content-addressed store, hash-verified

79
80// DisplayConfig displays value of requested config field
81func DisplayConfig(field string) {
82 key := searchField(field)
83
84 name := key.Name()
85 if name == "extensions" || name == "custom_apps" {
86 list := key.Strings("|")
87 for _, ext := range list {
88 log.Println(ext)
89 }
90 return
91 }
92
93 log.Println(key.Value())
94}
95
96// searchField finds requested field in all three config sections
97func searchField(field string) *ini.Key {

Callers 1

mainFunction · 0.92

Calls 1

searchFieldFunction · 0.85

Tested by

no test coverage detected