ux

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate added in v0.0.3

func Generate(ctx context.Context, work Workspace, target Spec, input Input) error

Types

type Generator

type Generator interface {
	Generate(context.Context, Input) error
}

func Pick added in v0.0.7

func Pick(plugins iter.Seq[Plugin], source, target Spec) (Generator, error)

type Input

type Input interface {
	Open() (io.Reader, error)
	Spec(context.Context) (Spec, error)
}

type Plugin

type Plugin interface {
	Execute(args []string) error
	Generator(source, target Spec) (Generator, error)
}

type Spec added in v0.0.7

type Spec interface {
	fmt.Stringer
}

type Workspace added in v0.0.7

type Workspace interface {
	Plugins() iter.Seq[Plugin]
}

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

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