category
packs_common
Common predicates for the packs tool objects.
staticPublic predicates
setup/0
Setup registries and packs directory structure.
staticsetup - oneverify_commands_availability/0
Verify required shell commands availability. Fails printing an error message if a command is missing.
staticverify_commands_availability - zero_or_onehelp/0
Provides help about the main predicates.
statichelp - onepin/1
Pins a resource (pack or registry) preventing it from being updated, uninstalled, or deleted. Fails if the resource is not found.
staticpin(Resource)pin(+atom) - zero_or_oneunpin/1
Unpins a resource (pack or registry), allowing it to be updated, uninstalled, or deleted. Fails if the resource is not found.
staticunpin(Resource)unpin(+atom) - zero_or_onepinned/1
True iff the resource (pack or registry) is defined or installed and if it is pinned.
staticpinned(Resource)pinned(+atom) - zero_or_onedirectory/2
Enumerates by backtracking all packs or registries and respective installation or definition directories.
staticdirectory(Resource,Directory)directory(?atom,?atom) - zero_or_moredirectory/1
Returns the directory where the registries or the packs are installed.
staticdirectory(Directory)directory(?atom) - zero_or_oneProtected predicates
readme_file_path/2
Returns the absolute path for the given directory readme file if it exists.
staticreadme_file_path(Directory,ReadMeFile)readme_file_path(+atom,-atom) - zero_or_oneprint_readme_file_path/1
Prints the absolute path for the given directory readme file if it exists. Succeeds otherwise.
staticprint_readme_file_path(Directory)print_readme_file_path(+atom) - onecommand/2
Executes a shell command. Prints an error message and fails if the command fails.
staticcommand(Command,FailureMessage)command(+atom,@nonvar) - zero_or_oneload_registry/1
Loads all registry files from the given directory.
staticload_registry(Directory)load_registry(+atom) - zero_or_onetar_command/1
Returns the name of the tar command to be used depending on the operating-system.
statictar_command(Command)tar_command(-atom) - onesupported_archive/1
True iff the archive format is supported.
staticsupported_archive(Extension)supported_archive(+atom) - zero_or_onePrivate predicates
(no local declarations; see entity ancestors if any)