pre-commit/pre_commit/commands/gc.py
Anthony Sottile d5c273a2ba refactor gc into store
this will make refactoring this easier later and limits the api surface of Store
2025-11-09 17:03:43 -05:00

9 lines
201 B
Python

from __future__ import annotations
from pre_commit import output
from pre_commit.store import Store
def gc(store: Store) -> int:
output.write_line(f'{store.gc()} repo(s) removed.')
return 0