19 lines
790 B
Markdown
19 lines
790 B
Markdown
# Composed consumer
|
|
|
|
This example composes application configuration, PromptKit configuration,
|
|
definition inspection, and one application-owned command:
|
|
|
|
```sh
|
|
go run . config scopes
|
|
go run . config validate --scope all --campaign spring --limit=0
|
|
go run . promptkit show prompt briefing --campaign spring --format yaml
|
|
go run . promptkit show profile spring --campaign spring
|
|
go run . session restore session-42 --campaign spring
|
|
```
|
|
|
|
The sources and session store are small in-memory fixtures. `--campaign` is a
|
|
typed selector shared by the app and PromptKit configuration scopes. Their
|
|
scope contexts share a per-invocation cache created by `ConfigSuite.NewContext`.
|
|
Prompt/profile inspection has its own invocation context and composes the same
|
|
application and engine loader functions.
|