Document PromptKit comparison and catalogs
This commit is contained in:
@@ -31,11 +31,16 @@ type catalogInput[I any] struct {
|
||||
selected I
|
||||
}
|
||||
|
||||
// Command captures the optional PromptKit catalog and named inspection trees
|
||||
// and adds only the operations present in suite. It adds no configuration
|
||||
// family; callers compose ConfigScope independently. Construction and
|
||||
// installation do not run suite callbacks. Suite documents invocation input
|
||||
// and state initialization, zero values, and caller ownership of returned objects.
|
||||
// Command captures the optional PromptKit catalog and named inspection
|
||||
// callbacks and adds only supplied operations, generating list and show groups
|
||||
// independently. An absent suite claims no namespace; attached construction
|
||||
// issues remain reportable. It adds no configuration family; callers compose
|
||||
// ConfigScope independently. Construction, installation, help, and version do
|
||||
// not run suite factories or providers. Suite documents invocation input and
|
||||
// state initialization, zero values, and caller ownership of returned objects.
|
||||
// Catalog commands accept config/overlay selection and suite selectors, and
|
||||
// render YAML with `yaml` as the only format and default. Named-show formats are
|
||||
// unchanged.
|
||||
func Command[I, S any](suite Suite[I, S]) commandkit.Command {
|
||||
if suite.InspectPrompt == nil && suite.InspectProfile == nil && suite.ListPrompts == nil && suite.ListProfiles == nil {
|
||||
command := commandkit.NoCommand()
|
||||
|
||||
Reference in New Issue
Block a user