- Module github.com/eslider/go-config with env/yaml/json/ini packages - internal: source, keymap, merge, structconv, bytesutil - cmd/envc: convert, get, merge - docs/asr ASR-0001..0008, README/CHANGELOG/AGENTS refresh - golangci-lint v2 config; tests + fixtures Co-authored-by: Cursor <cursoragent@cursor.com>
739 B
739 B
ASR-0007: CLI envc — convert, get, merge
Context
Operators need a small tool to translate configuration between formats and to inspect merged trees without writing Go.
Decision
- Binary name
envc; module pathgithub.com/eslider/go-config/cmd/envc(go install …/cmd/envc@latest). - Subcommands:
convert,get,merge— each implemented as aRun*(args, stdin, stdout, stderr) intfunction for in-process tests. - No third-party CLI framework in v1 of the CLI.
Consequences
cmd/envcmay grow flags; keep business logic in subpackages, not inmainbeyond wiring.
Status
Accepted — 2026-05-02.
References
- inventar ASR-0008 §2 — CLI placement
- ASR-0003