php-school / cli-menu

🖥 Build beautiful PHP CLI menus. Simple yet Powerful. Expressive DSL.
http://www.phpschool.io
MIT License
1.94k stars 106 forks source link

Custom item styles #232

Closed AydinHassan closed 4 years ago

AydinHassan commented 4 years ago

Allow to register custom items with styles, so that we can propagate styles for custom items.

codecov-io commented 4 years ago

Codecov Report

Merging #232 into master will decrease coverage by 0.1%. The diff coverage is 90.47%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master    #232      +/-   ##
===========================================
- Coverage     92.61%   92.5%   -0.11%     
- Complexity      611     626      +15     
===========================================
  Files            36      37       +1     
  Lines          1827    1882      +55     
===========================================
+ Hits           1692    1741      +49     
- Misses          135     141       +6
Impacted Files Coverage Δ Complexity Δ
src/Util/Collection.php 100% <100%> (ø) 6 <6> (?)
src/Style/Exception/InvalidStyle.php 100% <100%> (ø) 4 <1> (+1) :arrow_up:
src/CliMenu.php 94.17% <100%> (+0.11%) 116 <1> (+1) :arrow_up:
src/MenuItem/SplitItem.php 98.64% <100%> (+0.03%) 46 <0> (ø) :arrow_down:
src/Style/Locator.php 100% <100%> (ø) 13 <3> (+3) :arrow_up:
src/Util/ArrayUtils.php 100% <100%> (ø) 0 <0> (ø) :arrow_down:
src/Builder/SplitItemBuilder.php 75% <62.5%> (-2.5%) 14 <2> (+2)
src/Builder/CliMenuBuilder.php 71.07% <75%> (+0.2%) 77 <2> (+2) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update db978a6...8cd1cab. Read the comment docs.