driver

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bin

type Bin struct{}

type CompileOptions

type CompileOptions struct {
	Bin    string
	Runner command.Runner
}

type Driver

type Driver[T any] struct {
	// contains filtered or unexported fields
}

func Compile

func Compile[T any](decl T, options ...CompileOptions) (Driver[T], error)

func New

func New[T any](decl T, options ...CompileOptions) Driver[T]

func (Driver[T]) Command

func (d Driver[T]) Command(frames ...any) (command.Command, error)

func (Driver[T]) Run

func (d Driver[T]) Run(ctx context.Context, frames ...any) command.Result

func (Driver[T]) RunWith

func (d Driver[T]) RunWith(ctx context.Context, options command.RunOptions, frames ...any) command.Result

func (Driver[T]) With

func (d Driver[T]) With(ctx context.Context, options command.RunOptions, frames ...any) command.Result

Jump to

Keyboard shortcuts

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