pub fn all_official_or_fetch(path: &Path) -> Vec<PackageItem>Expand description
What: Return the entire official list; if empty, try to populate from disk and return it.
Inputs:
path: Path to on-disk JSON index to load as a fallback
Output:
- Vector of
PackageItems representing the current in-memory (or loaded) index.
Details:
- Loads from disk only when the in-memory list is empty to avoid redundant IO.