Skip to content

Releases: chop1k/consolly

v2.2.0

20 May 14:33
263eb74
Compare
Choose a tag to compare
  • Migrated to PHP 8.0 and phpunit 9.5.4.
  • Added lifecycle events.
  • Tests refactored.
    • Unit tests are now located in the /Unit namespace.
    • Tests are now more readable.
    • DataProviders moved to separate classes.
  • Added ConsollyBuilder with tests.

v2.1.1

19 Apr 16:39
c534e7d
Compare
Choose a tag to compare

Fixed bug where all arguments were ignored when using the default command.

v2.1.0

15 Apr 15:24
cd8b555
Compare
Choose a tag to compare
  • Added FormatterInterface and Formatter with test:
  • DistributorInterface and Distributor:
    • handleOptions() renamed to handleArguments().
  • Distributor:
    • Now requires implementation of FormatterInterface.
    • Minor changes in test.
    • Added new type of value "pure-type". Now you can use value without quotes.
  • ConsoleArgumentsSource:
    • Removed $ignoreFirst flag. Now the developer is obliged to take care of this himself.
  • Consolly
    • Added static method default().
  • Argument:
    • Added type constants which used by Formatter and Distributor.
    • Added additional functions.
    • Improved the accuracy of defining the argument type.
    • Added test.

v2.0.1

27 Mar 18:49
Compare
Choose a tag to compare

Fixes:

  • Fixed useless LogicException thrown in the distributor's getNextArguments method after the distributor received an empty array of commands.
  • Fixed uninitialized variable $commands in Consolly class.
    Other:
  • Added regression tests for the cases described above.

v2.0.0

27 Mar 18:46
Compare
Choose a tag to compare
  • Added more abstraction layers.
    • Added a DistributorInterface with implementation.
    • Added a SourceInterface with implementation.
  • Added more expansion options.
    • Now, command is not abstract class. Now you should use CommandInterface or Command class.
    • Now, option is not abstract class. Now you should use OptionInterface or Option class.
  • Added tests.
  • Added documentation.

First release (updated)

27 Mar 18:41
74ce9ad
Compare
Choose a tag to compare

First release (updated).

  • Added main class with all logic.
  • Added command abstract class, and option abstract class.