runner

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: GPL-3.0 Imports: 15 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)

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

Jump to

Keyboard shortcuts

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