MCPcopy Create free account
hub / github.com/PostHog/duckgres / bullet_list

Function bullet_list

scripts/test_impact_plan.py:483–489  ·  view source on GitHub ↗
(items: Iterable[str], limit: int = 8)

Source from the content-addressed store, hash-verified

481
482
483def bullet_list(items: Iterable[str], limit: int = 8) -> list[str]:
484 values = list(items)
485 visible = values[:limit]
486 bullets = [f" - {code_detail(item)}" for item in visible]
487 if len(values) > limit:
488 bullets.append(f" - ... and {len(values) - limit} more")
489 return bullets
490
491
492def render_markdown(plan: TestImpactPlan) -> str:

Callers 1

render_markdownFunction · 0.85

Calls 1

code_detailFunction · 0.85

Tested by

no test coverage detected