LuaRunner class

Runs Lua and Teal entry files, each in a fresh LuaRuntime.

Constructors

LuaRunner({void output(String line)?})

Properties

hashCode → int
The hash code for this object.
no setterinherited
output → void Function(String line)
Receives the lines the entries print.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(String entry, {List<String> arguments = const []}) → Future<LuaRunResult>
Runs one entry file and passes arguments to it as ... and arg.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

entries(Iterable<String> targets) → List<String>
Expands targets (files or directories) into entry files. Directories are searched recursively for main.tl|lua and *_test.tl|lua.
project(String entry) → LuaProject
Finds the nearest tlconfig.lua at or above the entry's directory and resolves its include_dir and source_dir against it. The entry's own directory is searched first, so helpers next to it can be required.