Files
commandkit/examples/composed/README.md

780 B

Composed consumer

This example composes application configuration, PromptKit configuration, definition inspection, and one application-owned command:

go run . config scopes
go run . config validate --scope all --campaign spring
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.