configfamily: one config file per program plus an optional family file

The generic part of yamase-core/pkg/configfile (yamase ADR-0074): per
tier a program merges the family file's top level, its section of the
family file and its own <program>.yaml, then --config. Includes
unknown-option rules for shared files, the config command on top of
configcmd.Layered with "create --shared", and doctor/logging helpers.
yaiam is the first user; yamase can move onto it later.

configcmd: a layered Optional program without any file now validates
its defaults and passes doctor instead of failing, as the single-file
path already did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
terminarandClaude Opus 5.5 committed 2026-10-26 20:26:25 +01:00
1 parent 5471863163
commit c11197bb37
9 files changed
+979 -3

No files matched your search

+2 -2
View File
@@ -85,8 +85,8 @@ type Spec struct {
Filename string
// Optional says the program also runs without a configuration file
// (on built-in defaults): "validate" and "upgrade" then report that
// no file exists instead of failing.
// (on built-in defaults): "validate", "upgrade", "show" and Doctor
// then report that no file exists instead of failing.
Optional bool
// None says the program has no configuration at all; every