Skip to content

v1.1.0 - CLI Summary Statistics

Latest

Choose a tag to compare

@deligoez deligoez released this 14 Dec 10:39
· 4 commits to master since this release

What's New

CLI Summary Statistics

All CLI commands now display a consistent summary section at the end of their output, providing clear statistics about the operations performed.

Features

  • Unified Summary Format: All four commands (report, validate, sync, pair) now show a consistent summary section
  • Dry-run Support: Summary clearly indicates when running in dry-run mode
  • Completion Messages: Each command ends with a checkmark (✓) and completion status

Command Summaries

report

  Summary
  ───────
    Methods with tests:       12
    Total test links:         24
    @see tags:                23

  ✓ Report complete.

validate

  Summary
  ───────
    PHPUnit attribute links:  10
    Pest method chain links:  5
    @see tags:                8
    Total links:              23

    Issues found:             3
      Duplicates:             1
      Orphan @see tags:       1
      Non-FQCN @see tags:     1
    Issues fixed:             1

  ✓ Validation complete.

sync

  Summary
  ───────
    Files modified:           3
    Files pruned:             0
    @see tags added:          8
    @see tags removed:        2
    #[TestedBy] added:        3

  ✓ Sync complete.

pair

  Summary
  ───────
    Placeholders resolved:    3
    Total changes:            12
    Files modified:           6

  ✓ Pairing complete.

Other Changes

  • Added summaryHeader(), summaryLine(), and summaryComplete() helper methods to Output class
  • Added comprehensive tests for Output class (29 new tests)
  • Updated documentation with new output examples

Full Changelog: v1.0.1...v1.1.0