Uninstall only the components this bundle contributed (no collateral removals).
(
bundle_id: str = typer.Argument(..., help="Installed bundle id to remove"),
)
| 446 | |
| 447 | @bundle_app.command("remove") |
| 448 | def bundle_remove( |
| 449 | bundle_id: str = typer.Argument(..., help="Installed bundle id to remove"), |
| 450 | ) -> None: |
| 451 | """Uninstall only the components this bundle contributed (no collateral removals).""" |
| 452 | try: |
| 453 | project_root = require_project_root() |
| 454 | from ...bundler.services.adapters import DefaultPrimitiveInstaller |
| 455 | from ...bundler.services.installer import remove_bundle |
| 456 | |
| 457 | result = remove_bundle(project_root, bundle_id, DefaultPrimitiveInstaller()) |
| 458 | except BundlerError as exc: |
| 459 | _fail(str(exc)) |
| 460 | return |
| 461 | |
| 462 | console.print( |
| 463 | f"[green]✓[/green] Removed '{result.bundle_id}' " |
| 464 | f"({len(result.uninstalled)} uninstalled, {len(result.skipped)} kept for other bundles)." |
| 465 | ) |
| 466 | |
| 467 | |
| 468 | # ===== Author ===== |
nothing calls this directly
no test coverage detected