Module plan

Module plan 

Source
Expand description

Removal planning and dependency analysis.

The planning phase reads the package database, resolves the package to remove, and collects any installed packages that still depend on it. The resulting RemovalPlan is a snapshot of what the execution phase should remove, not a live view of the database.

This split matters because the CLI wants to inspect the plan before it mutates anything. It can display dependents, ask for confirmation, and only then hand the plan to the execution layer.

Functionsยง

dependency_name ๐Ÿ”’
Extract the dependency package name from a stored dependency string.
find_dependents
Find installed packages that depend on the named package.
plan_removal
Build a removal plan for the named package.
removal_plan ๐Ÿ”’
Construct a removal plan from an already loaded package and dependent list.