type

RuntimeLibs

const mixin RuntimeLibs

Runtime Xeto namespace library management

methods

add

Convenience to add one library

addAll

Add one or more libraries to the namespace.

env

Xeto environment used to manage/cache Xeto libraries

get

Lookup an project library by name.

has

Check if there is an enabled library with given name

list

List of Xeto libraries installed in the project

remove

Convenience to remove one library

removeAll

Remove one or more libraries from the namespace.

Slot Details

add

abstract Void add(Str name)

Convenience to add one library

addAll

abstract Void addAll(Str[] names)

Add one or more libraries to the namespace. Raise exception if a lib is not found or has a dependency error.

env

abstract XetoEnv env()

Xeto environment used to manage/cache Xeto libraries

get

abstract RuntimeLib? get(Str name, Bool checked := true)

Lookup an project library by name. If not found then return null or raise UnknownLibErr based on checked flag.

has

abstract Bool has(Str name)

Check if there is an enabled library with given name

list

abstract RuntimeLib[] list()

List of Xeto libraries installed in the project

remove

abstract Void remove(Str name)

Convenience to remove one library

removeAll

abstract Void removeAll(Str[] names)

Remove one or more libraries from the namespace. Raise exception if removing lib would cause a dependency error.