runtime

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSessionClosed = errors.New("session is closed")

Functions

func BinaryPath

func BinaryPath(cfg cula.Config, fallback string) string

func CommandEnv

func CommandEnv(input cula.SessionInput, cfg cula.Config) []string

func Emit

func Emit(events chan<- cula.Event, done <-chan struct{}, ev cula.Event) (ok bool)

func ExitCode

func ExitCode(err error) int

func LookupRuntime

func LookupRuntime(binary, name string, kind cula.RuntimeKind, displayName string) cula.RuntimeInfo

func NormalizeInput

func NormalizeInput(input cula.SessionInput) cula.SessionInput

func ParseArguments

func ParseArguments(args string) map[string]any

func StringMapSummary

func StringMapSummary(input map[string]any) string

func Truncate

func Truncate(s string, n int) string

func WriteJSONLine

func WriteJSONLine(w io.Writer, v any) error

Types

type RawValue

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

func (RawValue) AsString

func (r RawValue) AsString() (string, bool)

func (RawValue) AsText

func (r RawValue) AsText() string

func (RawValue) Raw

func (r RawValue) Raw() json.RawMessage

func (*RawValue) UnmarshalJSON

func (r *RawValue) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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