object
registries
Registry handling predicates.
logtalk_load(packs(loader))
static, context_switching_calls
Public predicates
list/0
Prints a list of all defined registries, including how defined (git
, archive
, or directory
) and if they are pinned.
static
list
- one
describe/1
Prints all registry entries.
static
describe(Registry)
describe(+atom)
- one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
defined/4
Enumerates by backtracking all defined registries, their definition URL, how they are defined (git
, archive
, or directory
), and if they are pinned.
static
defined(Registry,URL,HowDefined,Pinned)
defined(?atom,?atom,?atom,?boolean)
- zero_or_more
Registry
is neither a variable nor an atom:type_error(atom,Registry)
URL
is neither a variable nor an atom:type_error(atom,URL)
HowDefined
is neither a variable nor an atom:type_error(atom,HowDefined)
Pinned
is neither a variable nor a boolean:type_error(boolean,Pinned)
add/3
Adds a new registry using the given options. Fails if the registry cannot be added or if it is already defined but not using update(true)
or force(true)
options. A file://
URL can be used for a local directory.
static
add(Registry,URL,Options)
add(+atom,+atom,++list(compound))
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
URL
is a variable:instantiation_error
URL
is neither a variable nor an atom:type_error(atom,URL)
Options
is a variable:instantiation_error
Options
is neither a variable nor a list:type_error(list,Options)
Option
of the list Options
is a variable:instantiation_error
Option
of the list Options
is neither a variable nor a compound term:type_error(compound,Option)
Option
of the list Options
is a compound term but not a valid option:domain_error(option,Option)
Registry name: Must be the URL basename when using a git URL or a local directory URL. Must also be the declared registry name in the registry specification object.
HTTPS URLs: Must end with either a
.git
extension or an archive extension.
update(Boolean)
option: Update registry if already defined. Default isfalse
. Overrides theforce/1
option.
force(Boolean)
option: Force registry re-installation if already defined by first deleting the previous installation. Default isfalse
.
clean(Boolean)
option: Clean registry archive after updating. Default isfalse
.
verbose(Boolean)
option: Verbose adding steps. Default isfalse
.
downloader(Atom)
option: Downloader utility. Eithercurl
orwget
. Default iscurl
.
curl(Atom)
option: Extra command-line options. Default is''
.
wget(Atom)
option: Extra command-line options. Default is''
.
gpg(Atom)
option: Extra command-line options. Default is''
.
tar(Atom)
option: Extra command-line options. Default is''
.
add/2
Adds a new registry using default options. Fails if the registry cannot be added or if it is already defined. HTTPS URLs must end with either a .git
extension or a an archive extension. A file://
URL can be used for a local directory.
static
add(Registry,URL)
add(+atom,+atom)
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
URL
is a variable:instantiation_error
URL
is neither a variable nor an atom:type_error(atom,URL)
Registry name: Must be the URL basename when using a git URL or a local directory URL. Must also be the declared registry name in the registry specification object.
add/1
Adds a new registry from a git cloning or local directory URL using default options. Fails if the registry cannot be added or if it is already defined. HTTPS URLs must end with a .git
extension. A file://
URL can be used for a local directory.
static
add(URL)
add(+atom)
- zero_or_one
URL
is a variable:instantiation_error
URL
is neither a variable nor an atom:type_error(atom,URL)
Limitations: Cannot be used for archive download URLs.
Registry name: Taken from the URL basename.
update/2
Updates a defined registry using the specified options. Fails if the registry is not defined.
static
update(Registry,Options)
update(+atom,++list(compound))
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Options
is a variable:instantiation_error
Options
is neither a variable nor a list:type_error(list,Options)
Option
of the list Options
is a variable:instantiation_error
Option
of the list Options
is neither a variable nor a compound term:type_error(compound,Option)
Option
of the list Options
is a compound term but not a valid option:domain_error(option,Option)
force(Boolean)
option: Force update if the registry is pinned. Default isfalse
.
clean(Boolean)
option: Clean registry archive after updating. Default isfalse
.
verbose(Boolean)
option: Verbose updating steps. Default isfalse
.
downloader(Atom)
option: Downloader utility. Eithercurl
orwget
. Default iscurl
.
curl(Atom)
option: Extra command-line options. Default is''
.
wget(Atom)
option: Extra command-line options. Default is''
.
gpg(Atom)
option: Extra command-line options. Default is''
.
tar(Atom)
option: Extra command-line options. Default is''
.
update/1
Updates a defined registry using default options. Fails if the registry is not defined.
static
update(Registry)
update(+atom)
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
update/0
Updates all defined registries using default options.
static
update
- zero_or_one
delete/2
Deletes a registry using the specified options (if not pinned).
static
delete(Registry,Options)
delete(+atom,++list(compound))
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Options
is a variable:instantiation_error
Options
is neither a variable nor a list:type_error(list,Options)
Option
of the list Options
is a variable:instantiation_error
Option
of the list Options
is neither a variable nor a compound term:type_error(compound,Option)
Option
of the list Options
is a compound term but not a valid option:domain_error(option,Option)
force(Boolean)
option: Force deletion if the registry is pinned or there are installed registry packs. Default isfalse
.
clean(Boolean)
option: Clean registry archive after deleting. Default isfalse
.
verbose(Boolean)
option: Verbose deleting steps. Default isfalse
.
downloader(Atom)
option: Downloader utility. Eithercurl
orwget
. Default iscurl
.
curl(Atom)
option: Extra command-line options. Default is''
.
wget(Atom)
option: Extra command-line options. Default is''
.
gpg(Atom)
option: Extra command-line options. Default is''
.
tar(Atom)
option: Extra command-line options. Default is''
.
delete/1
Deletes a registry using default options.
static
delete(Registry)
delete(+atom)
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
delete/0
Deletes all registries using the force(true)
option.
static
delete
- zero_or_one
clean/1
Cleans all registry archives. Fails if the registry is not defined.
static
clean(Registry)
clean(+atom)
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
clean/0
Cleans all archives for all registries.
static
clean
- one
provides/2
Enumerates by backtracking all packs provided by a registry.
static
provides(Registry,Pack)
provides(?atom,?atom)
- zero_or_more
Registry
is neither a variable nor an atom:type_error(atom,Registry)
Pack
is neither a variable nor an atom:type_error(atom,Pack)
lint/1
Checks the registry specification. Fails if the registry is not defined or if linting detects errors.
static
lint(Registry)
lint(+atom)
- zero_or_one
Registry
is a variable:instantiation_error
Registry
is neither a variable nor an atom:type_error(atom,Registry)
lint/0
Checks all registry specifications.
static
lint
- one
Protected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)