v0.2.2 fixes: split only text sources, report a mode change once, don't block on open
Test / test (push) Canceled after 0s

This commit is contained in:
lixen committed 2026-10-03 23:47:22 -04:00
1 parent 2a47be454d
commit 4d3c91406b
21 files changed
+368 -62

No files matched your search

+3
View File
@@ -259,6 +259,9 @@ func (c *Config) setSourceLocked(source Source, path string, value any) error {
if !validSource(source) {
return wrapError(ErrTypeMismatch, fmt.Errorf("invalid source %q", source))
}
if source == SourceEnv || source == SourceCLI {
value = textList(item.defaultValue, value)
}
if err := validateValue(item, value); err != nil {
return err
}