XetoEnv
@Js
const abstract class XetoEnv : Obj
XetoEnv models the server side file system search path.
Build varaibles
Construct a namespace for the given set of lib versions for this env
Current environment for the VM
Home directory where xeto software is installed Not available in browser environemnts
Default install directory for xeto install
List of paths to search for libraries in both src and lib format
Configured remote repos which can be used to install to the local repo
Local repository of all installed xeto libs
Given a list of library names, resolve them to the installed versions, solve their dependency graph, and create a namespace
Working directory - first directory in the path
abstract Str:Str buildVars()
Build varaibles
abstract Namespace createNamespace(LibVersion[] libs)
Construct a namespace for the given set of lib versions for this env. This method does not solve the dependency graph. The list of lib versions passed must be a complete dependency tree that satisifies all version constraints.
static XetoEnv cur()
Current environment for the VM
abstract File homeDir()
Home directory where xeto software is installed Not available in browser environemnts.
abstract File installDir()
Default install directory for xeto install.
Default is the workDir
Not available in browser environemnts.
abstract File[] path()
List of paths to search for libraries in both src and lib format. Not available in browser environemnts.
abstract RemoteRepoRegistry remoteRepos()
Configured remote repos which can be used to install to the local repo. Not available in browser environemnts.
abstract LocalRepo repo()
Local repository of all installed xeto libs. Not available in browser environemnts.
abstract Namespace resolveNamespace(Str[] names)
Given a list of library names, resolve them to the installed versions, solve their dependency graph, and create a namespace.
abstract File workDir()
Working directory - first directory in the path. The workDir
is used as default location for xeto init to create new libs.
Not available in browser environemnts.