Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wp-cli/php-cli-tools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6eafd5f
Choose a base ref
...
head repository: wp-cli/php-cli-tools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4935020
Choose a head ref
  • 5 commits
  • 4 files changed
  • 2 contributors

Commits on Feb 2, 2026

  1. Initial plan

    Copilot committed Feb 2, 2026
    Configuration menu
    Copy the full SHA
    3e35385 View commit details
    Browse the repository at this point in the history
  2. Add wrapping mode configuration for table columns

    - Add setWrappingMode() method to Ascii renderer and Table class
    - Support three modes: 'wrap' (default), 'word-wrap', and 'truncate'
    - word-wrap mode wraps at word boundaries (spaces/hyphens)
    - truncate mode truncates with ellipsis (...)
    - Add helper methods wrapText() and wordWrap() for wrapping logic
    - Add tests for new functionality
    
    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Feb 2, 2026
    Configuration menu
    Copy the full SHA
    01d65c7 View commit details
    Browse the repository at this point in the history
  3. Update table wrapping example with documentation

    - Add comprehensive examples for all three wrapping modes
    - Include explanations of when to use each mode
    - Add usage instructions in the example output
    - Make executable with proper shebang
    
    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Feb 2, 2026
    Configuration menu
    Copy the full SHA
    a28b281 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2026

  1. Refactor: Use class constant for valid wrapping modes and optimize wi…

    …dth tracking
    
    - Define VALID_WRAPPING_MODES as a private class constant for better maintainability
    - Optimize wordWrap() by tracking width incrementally instead of recalculating Colors::width() on every iteration
    - Addresses code review feedback from @swissspidy
    
    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Feb 3, 2026
    Configuration menu
    Copy the full SHA
    867bc04 View commit details
    Browse the repository at this point in the history
  2. Refactor: Add ellipsis constants and simplify pre-colorized check

    - Define ELLIPSIS and ELLIPSIS_WIDTH as class constants for better maintainability
    - Remove redundant width check in pre-colorized condition (already validated earlier)
    - Addresses code review feedback from @swissspidy
    
    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Feb 3, 2026
    Configuration menu
    Copy the full SHA
    4935020 View commit details
    Browse the repository at this point in the history
Loading