registry

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CwdBin     = common.Apply(local.Cwd.Join("bin"))
	LocalBin   = common.Apply(local.Directory(config.LocalBin))
	UserConfig = common.Apply(local.Directory(config.PluginDir))

	Default = Aggregate{CwdBin, LocalBin, UserConfig}
)

Functions

func Capabilities added in v0.0.2

func Capabilities(ctx context.Context, options ...list.Option) (plugin.CapMap, error)

func Decorate added in v0.0.2

func Decorate(registry plugin.Registry, decorators ...Decorator) plugin.Registry

func FilterErrors

func FilterErrors(registry plugin.Registry, filter func(error) bool) plugin.Registry

func IgnoreNotFound

func IgnoreNotFound(registry plugin.Registry) plugin.Registry

func List

func List(ctx context.Context, options ...list.Option) (plugin.List, error)

Types

type Aggregate

type Aggregate []plugin.Registry

func (Aggregate) List

func (registries Aggregate) List(ctx context.Context) (plugin.List, error)

type Decorator added in v0.0.2

type Decorator = builder.Decorator

type ErrorFilter

type ErrorFilter struct {
	Filter   func(error) bool
	Registry plugin.Registry
}

func (ErrorFilter) List

func (r ErrorFilter) List(ctx context.Context) (plugin.List, error)

type Filtered

type Filtered struct {
	Filter   func(string, ux.Plugin) bool
	Registry plugin.Registry
}

func (Filtered) List

func (r Filtered) List(ctx context.Context) (plugin.List, error)

type Local added in v0.0.2

type Local interface {
	Path() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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