runner

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: GPL-3.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WithUml2Ts  = pluginOption("uml2ts")
	WithUml2Go  = pluginOption("uml2go")
	WithUml2Pcl = pluginOption("uml2pcl")
)

Functions

func NewCli

func NewCli(path string, opts ...CliOpt) (uml.Runner, error)

func NewEcho added in v0.0.23

func NewEcho() uml.Runner

func WithMediaType added in v0.0.23

func WithMediaType(runner uml.Runner, media string) uml.Runner

Types

type CliErr added in v0.0.18

type CliErr struct {
	Stdout string
	Stderr string
}

func (*CliErr) Error added in v0.0.18

func (c *CliErr) Error() string

Error implements error.

type CliOpt added in v0.0.17

type CliOpt func(*cli) error

func WithArgs added in v0.0.17

func WithArgs(arg ...string) CliOpt

func WithLogger added in v0.0.17

func WithLogger(log *slog.Logger) CliOpt

type Docker

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

func NewDocker

func NewDocker(opts ...DockerOption) Docker

func (*Docker) From

func (d *Docker) From(ctx context.Context, reader io.Reader) (*tdl.Spec, error)

From implements uml.Converter.

func (*Docker) Gen

func (d *Docker) Gen(ctx context.Context, spec *tdl.Spec, writer io.Writer) error

Gen implements uml.Generator.

type DockerOption

type DockerOption func(*Docker) error

func FromGen

func FromGen(options uml.GeneratorOptions) DockerOption

func WithName

func WithName(name string) DockerOption

func WithTarget

func WithTarget(target string) DockerOption

type Runner added in v0.0.22

type Runner[Spec, I, O any] interface {
	from.Converter[I, Spec]
	gen.Generator[Spec, O]
}

Jump to

Keyboard shortcuts

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