cli

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Fail = cli.Fail

Functions

func BinName

func BinName(source, target ux.Spec) string

func Generator

func Generator(path string, source, target ux.Spec) ux.Generator

func Invoke added in v0.0.12

func Invoke(ctx context.Context, name, input, output string) error

func PluginMain added in v0.0.12

func PluginMain(build func(plugin.Ux) decl.Plugin)

Types

type Plugin

type Plugin string

func (Plugin) BinName

func (p Plugin) BinName() string

func (Plugin) Execute

func (p Plugin) Execute(args []string) error

func (Plugin) Generator

func (p Plugin) Generator(source, target ux.Spec) (ux.Generator, error)

func (Plugin) Path

func (p Plugin) Path() string

func (Plugin) String

func (p Plugin) String() string

type Ux added in v0.0.12

type Ux struct{ os.Os }

func (*Ux) Context added in v0.0.12

func (ux *Ux) Context() context.Context

func (*Ux) InputFile added in v0.0.12

func (ux *Ux) InputFile() string

func (*Ux) OutputPath added in v0.0.12

func (ux *Ux) OutputPath() string

Jump to

Keyboard shortcuts

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