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

Function stringType

src/cmd/config.go:193–204  ·  view source on GitHub ↗
(section *ini.Section, field, value string)

Source from the content-addressed store, hash-verified

191}
192
193func stringType(section *ini.Section, field, value string) {
194 key, err := section.GetKey(field)
195 if err != nil {
196 utils.Fatal(err)
197 }
198 if len(strings.TrimSpace(value)) == 0 || value[len(value)-1] == '-' {
199 value = ""
200 }
201 key.SetValue(value)
202
203 changeSuccess(field, value)
204}
205
206func toggleType(field, value string) {
207 key := searchField(field)

Callers 1

EditConfigFunction · 0.85

Calls 2

FatalFunction · 0.92
changeSuccessFunction · 0.85

Tested by

no test coverage detected