Documentation
¶
Overview ¶
Package adaptercmd provides the shared ext adapter management command. It owns no product selection policy; hosts may supply their doctor invocation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCatalogAdapter ¶
AddCatalogAdapter activates and trusts a catalog adapter and its dependencies, installing its declared shims.
func CatalogStore ¶
CatalogStore opens the configured local adapter catalog without creating it.
func InstalledAdapterNames ¶
InstalledAdapterNames returns names visible in the configured adapter store.
func RefreshCatalogAdapters ¶
RefreshCatalogAdapters updates active catalog adapters in dependency order.
Types ¶
type Options ¶
type Options struct {
// Name labels diagnostics and follow-up commands (for example ext or ctx).
Name string
// Store overrides the installed package root for an embedding command.
Store *modpkg.Store
// Command labels the management command; the default is adapter.
Command string
// Doctor optionally invokes diagnostics with the consumer's selection policy.
// Run checks package trust before calling it.
Doctor func(*modpkg.Adapter, io.Writer, io.Writer) int
}
Options configures a management entry point. The zero value runs as ext.