Files
commandkit/integrations/ckprompt/doc.go

24 lines
1.3 KiB
Go

// Package ckprompt adds PromptKit inspection and testing commands to CommandKit
// applications. Operators can list resources, inspect definitions, discover
// required inputs, validate and preview requests, and run smoke tests.
//
// Start with FromEngine and add optional operations with WithRequestValidation,
// WithRequestPreparation, and WithSmokeTesting. Command returns the command
// family; Declarations also includes its convenience flag aliases. Install
// these with commandkit.New or App.Register.
//
// A nonempty family installs --show-tokens for application commands as well as
// PromptKit commands. When requested, it observes PromptKit calls using the
// invocation context and reports usage on diagnostics after execution. Applications
// must pass that context to their work and wait for their own work before returning.
// Empty suites install no flag. Smoke-test usage remains in the command report.
//
// ConfigScope separately exposes engine configuration through ckconfig.
// ConfigScope preserves PromptKit focused discovery and whole-load evidence.
// Applications can compose PromptKit settings into an application-owned load
// and pass the completed result to promptkit.NewFromConfig.
//
// Importing this package installs neither command family. Applications own
// engine construction, credentials, and client configuration.
package ckprompt