Skip to main content

Module local

Module local 

Source
Expand description

Local package management and store interaction.

This module provides functions for interacting with the local package store, listing installed packages, and managing package manifests and dependencies.

Structs§

InstalledPackage
Represents an installed package with basic metadata.

Functions§

add_dependent
Adds a dependent ID to a package’s dependents list.
find_installed_manifests_matching
Finds installed manifests matching a package request in a specific scope.
get_all_available_packages
Returns all available packages in the default registry.
get_dependents
Returns a list of all dependent IDs for a package.
get_installed_manifests_in_scope
Returns all installed manifests in a specific scope.
get_installed_packages
Returns a list of all installed packages across all scopes.
get_installed_packages_with_type
Returns a list of all installed packages with their basic metadata.
get_package_dir
Returns the directory for a specific package in the store.
get_package_source_path
Returns the path where the package source file should be stored.
get_package_version_dir
Returns the directory for a specific version of a package in the store.
get_packages_from_repos
Returns all available packages from a list of repositories.
get_store_base_dir
Returns the base directory of the package store for a given scope.
installed_manifest_source
Returns the source string for an installed manifest.
is_package_installed
Checks if a package is installed in a given scope and returns its manifest if found.
package_source_string
Formats a package source string from its components.
persist_package_source
Persists the package source file to the store.
remove_dependent
Removes a dependent ID from a package’s dependents list.
update_manifest_reason
Updates the installation reason in a package’s manifest.
write_manifest
Writes an installation manifest to the store and updates the ‘latest’ symlink.