Skip to content

cli-menu 2.0.0

Compare
Choose a tag to compare
@AydinHassan AydinHassan released this 27 Oct 21:34
· 664 commits to master since this release

[2.0.0]

Fixed

  • PHPUnit deprecations - updated to createMock()

Changed

  • Require ext-posix (#50)
  • Make MenuStyle easier to construct by only allowing changes to be made via setters (#45)

Added

  • Added getStyle() to CliMenu to get access to the style object from the menu itself (#42)
  • Added redraw method to CliMenu which can redraw the menu immediately with any style changes. See
    examples/crazy-redraw.php for an example (#43)
  • Added tests for child menu style inheritance (#44)
  • Add getter getItems() to get all items from the menu (#46)
  • Add method removeItem(ItemInterface $item) to remove an item from the menu (#46)
  • Ability to toggle item extra while the menu is open - see examples/toggle-item-extra.php (#46)
  • Added dialogues flash and confirm - they both display some text on top of the menu, flash is dismissed with
    any key press where the confirm requires enter to be pressed on the provided button.
    See examples/confirm.php and examples/flash.php (#49)

Removed

  • Removed windows terminal - many required terminal features are unavailable (#50)
  • Individual component instantiation restrictions (#41)

screen shot 2016-10-27 at 22 23 23

screen shot 2016-10-27 at 22 24 01