Demonstrate config diff in simple consumer

This commit is contained in:
2026-10-11 21:52:47 +00:00
parent 18ee987a88
commit 3cbb1f35b0
6 changed files with 109 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ Run the maintained example with:
```sh
go run . config show
go run . config diff --config fixtures/before.yml --against-config fixtures/after.yml
go run . greet
go run . greet --count=0 --tag=first --tag second
```
@@ -11,4 +12,6 @@ go run . greet --count=0 --tag=first --tag second
The `config` family comes from one typed ConfigKit scope. The custom `greet`
command uses CommandKit's typed bindings and shows the difference between an
omitted `--count` and an explicitly supplied zero, plus ordered repeated tags.
The configuration is synthetic and stays in memory.
With no `--config`, application settings use the in-memory default. A supplied
configuration and overlay are passed to ConfigKit unchanged. The comparison
command loads the two local fixtures and reports `changes.greeting: Goodbye`.