adaptercmd

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func AddCatalogAdapter(name string) (*modpkg.Adapter, error)

AddCatalogAdapter activates and trusts a catalog adapter and its dependencies, installing its declared shims.

func CatalogStore

func CatalogStore() *modpkg.Store

CatalogStore opens the configured local adapter catalog without creating it.

func InstalledAdapterNames

func InstalledAdapterNames() map[string]bool

InstalledAdapterNames returns names visible in the configured adapter store.

func RefreshCatalogAdapters

func RefreshCatalogAdapters(stdout io.Writer) error

RefreshCatalogAdapters updates active catalog adapters in dependency order.

func Run

func Run(args []string, stdout, stderr io.Writer) int

Run executes management with the default ext presentation.

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.

func (Options) Run

func (o Options) Run(args []string, stdout, stderr io.Writer) int

Run executes adapter management with product-specific presentation and optional doctor selection.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL