compact.compaction_summary

compact.compaction_summary(findings)

The summary line of spotregen compact.

Parameters

Name Type Description Default
findings Sequence[Finding] The result of compaction_report. required

Returns

Name Type Description
str str regen compact: N candidates.

Examples

from pathlib import Path
from tempfile import TemporaryDirectory

from spotregen import compaction_report, compaction_summary, load_spec, make_sample_repo

with TemporaryDirectory() as tmp:
    spec = load_spec(make_sample_repo(Path(tmp) / "demo"))
    print(compaction_summary(compaction_report(spec)))
regen compact: 0 candidates