MCPcopy Index your code
hub / github.com/github/spec-kit / bundle_remove

Function bundle_remove

src/specify_cli/commands/bundle/__init__.py:448–465  ·  view source on GitHub ↗

Uninstall only the components this bundle contributed (no collateral removals).

(
    bundle_id: str = typer.Argument(..., help="Installed bundle id to remove"),
)

Source from the content-addressed store, hash-verified

446
447@bundle_app.command("remove")
448def 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 =====

Callers

nothing calls this directly

Calls 5

require_project_rootFunction · 0.85
remove_bundleFunction · 0.85
_failFunction · 0.85
printMethod · 0.80

Tested by

no test coverage detected