type

LibRepo

@Js
const mixin LibRepo

Library repository is a database of Xeto libs. A repository might provide access to multiple versions per library. Use XetoEnv.repo to get the VMs default repo.

methods

latest

Get the latest version of the library name available.

latestMatch

Get the latest version that matches the given dependency.

libs

List the library names installed in the repository.

solveDepends

Solve the dependency graph for given list of libs and return a complete dependency graph.

version

Get the info for a specific library name and version.

versions

List the verions available for given library name.

Slot Details

latest

abstract LibVersion? latest(Str name, Bool checked := true)

Get the latest version of the library name available. If no versions are available then raise exception or return null based on check flag.

latestMatch

abstract LibVersion? latestMatch(LibDepend depend, Bool checked := true)

Get the latest version that matches the given dependency. If no matches are available, then raise exception or return null based on check flag.

libs

abstract Str[] libs()

List the library names installed in the repository.

solveDepends

abstract LibVersion[] solveDepends(LibDepend[] libs)

Solve the dependency graph for given list of libs and return a complete dependency graph. Raise an exception is no solution can be computed based on the installed lib versions.

version

abstract LibVersion? version(Str name, Version version, Bool checked := true)

Get the info for a specific library name and version. If the given library or version is not available then raise exception or return null based on the checked flag.

versions

abstract LibVersion[]? versions(Str name, Bool checked := true)

List the verions available for given library name. If the library is not available then raise exception or return null based on check flag.