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

Function _format_component

src/specify_cli/commands/bundle/__init__.py:664–673  ·  view source on GitHub ↗
(item: dict)

Source from the content-addressed store, hash-verified

662
663
664def _format_component(item: dict) -> str:
665 label = f"{item['id']} v{item['version']}" if item.get("version") else item["id"]
666 extras = []
667 if item.get("priority") is not None:
668 extras.append(f"priority={item['priority']}")
669 if item.get("strategy") is not None:
670 extras.append(f"strategy={item['strategy']}")
671 if extras:
672 label += f" ({', '.join(extras)})"
673 return label
674
675
676def _bundle_overlaps(project_root: Path, manifest, *, offline: bool) -> list[str]:

Callers 1

bundle_infoFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected