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§
- Installed
Package - 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.