Releases: chop1k/consolly
Releases · chop1k/consolly
v2.2.0
v2.1.1
v2.1.0
- 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
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
- 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)
First release (updated).
- Added main class with all logic.
- Added command abstract class, and option abstract class.