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

Function toggleType

src/cmd/config.go:206–216  ·  view source on GitHub ↗
(field, value string)

Source from the content-addressed store, hash-verified

204}
205
206func toggleType(field, value string) {
207 key := searchField(field)
208
209 if value != "0" && value != "1" {
210 unchangeWarning(field, `"`+value+`" is not valid value. Only "0" or "1" are valid.`)
211 return
212 }
213
214 key.SetValue(value)
215 changeSuccess(field, value)
216}

Callers 1

EditConfigFunction · 0.85

Calls 3

searchFieldFunction · 0.85
unchangeWarningFunction · 0.85
changeSuccessFunction · 0.85

Tested by

no test coverage detected