dsl

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session = repl.DSLSession

Session is the programmatic DSL execution session.

It supports Execute(line), ExecuteFile(path), and Context().

func NewSession

func NewSession(mgr *env.Manager, envName string, output io.Writer) (*Session, error)

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

mgr is required: pass env.Default() to use the standard <UserHomeDir>/.insyra root, or env.NewManager(path) for a custom root (e.g. per-workspace embedding). Each session keeps its own Manager, so concurrent sessions in the same process can target different roots without interfering with each other.

envName "" defaults to "default". output nil silently discards.

Jump to

Keyboard shortcuts

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