plugin

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BinPattern = regexp.MustCompile(`^([\w\-]+2[\w\-]+)|(ux-[\w\-]+)$`)
)

Functions

func ForGenerator added in v0.0.7

func ForGenerator(g ux.Generator) ux.Plugin

func Parse added in v0.0.5

func Parse(name string, parser Parser) (ux.Plugin, error)

Types

type Cli added in v0.0.12

type Cli struct {
	Name string
	Args []string
}

func (Cli) Invoke added in v0.0.12

func (c Cli) Invoke(ctx ux.Context) error

type CliError added in v0.0.12

type CliError struct {
	// contains filtered or unexported fields
}

func (CliError) Error added in v0.0.12

func (err CliError) Error() string

type Parser added in v0.0.7

type Parser interface {
	Parse(string) (ux.Plugin, error)
}

type Registry

type Registry interface {
	Sources() iter.Seq[Source]
}

type Selector added in v0.0.7

type Selector interface {
	Select(iter.Seq[ux.Plugin]) (ux.Plugin, error)
}

type Source added in v0.0.7

type Source interface {
	Load(context.Context) (ux.Plugin, error)
}

type Ux added in v0.0.12

type Ux interface {
	InputFile() string
	OutputPath() string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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