repl

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAutoCompleter

func NewAutoCompleter(ctx *commands.ExecContext) readline.AutoCompleter

func Start

func Start(ctx *commands.ExecContext) error

Types

type DSLSession

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

func NewDSLSession

func NewDSLSession(mgr *env.Manager, envName string, output io.Writer) (*DSLSession, error)

NewDSLSession creates a DSL session bound to mgr's environment storage.

mgr must be non-nil — pass env.Default() to use the standard <UserHomeDir>/.insyra root, or env.NewManager(path) for a custom one. envName "" defaults to "default". output nil silently discards.

func (*DSLSession) Context

func (session *DSLSession) Context() *commands.ExecContext

func (*DSLSession) Execute

func (session *DSLSession) Execute(line string) error

func (*DSLSession) ExecuteFile

func (session *DSLSession) ExecuteFile(path string) error

Jump to

Keyboard shortcuts

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