mirror of
https://github.com/n3w/helpers-cli-input.git
synced 2025-12-19 12:43:23 +00:00
4.6 KiB
4.6 KiB
Change Log
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
1.2.1
Changed
- Updated
InputHandlerFactoryandInputTypeFactoryto work with changes inpointybeard/helpers-foundation-factory1.0.2
1.2.0
Added
- Added
InputTypeFilterIteratorclass - Added
UnrecognisedInputExceptionexception
Changed
InputCollectionnow implementsIteratorandCountable(implementing required methods)- Removed use of
$typeinInputCollection - Added
InputCollection::getItemsExcludeByType() InputCollection::getItemsByType()andInputCollection::getItems()now returns anIterator- Renamed
InputCollection::append()toadd()and added$positionflag - Added
POSITION_APPENDandPOSITION_PREPENDflags toInputCollection - Made
getCollection(),getInput(),find(), andvalidate()inAbstractInputHandlerfinal - Removed all categorisation of items by type in
AbstractInputHandler::$input - Abstracted most of
AbstractInputHandler::validate()into it's own protected method calledvalidateInput() - Removed
$skipValidationargument fromAbstractInputHandler::bind()and relaced with$flags - Added
FLAG_BIND_SKIP_VALIDATION,FLAG_VALIDATION_SKIP_REQUIRED,FLAG_VALIDATION_SKIP_CUSTOM, andFLAG_VALIDATION_SKIP_UNRECOGNISEDflags toAbstractInputHandler - Added check in
AbstractInputHandler::validate()to look for unrecognised options and arguments - Removed
InputHandlerFactory::FLAG_SKIP_VALIDATIONfromInputHandlerFactory - Passing flags in call from
InputHandlerFactory::build()toAbstractInputHandler::bind() - Updated
InputHandlerInterface::bind()andvalidate()methods to support flags
1.1.4
Fixed
- Fixed misnamed variable in
InputCollection::merge()
1.1.3
Fixed
- Fixed logic bug that prevented
$indexand$typefrom being set inInputCollection::append(). This means replaceing items in anInputCollectionnow works as expected
1.1.2
Added
- Added
InputValidationFailedExceptionexception - Added
InputTypeInterface::getDisplayName()method to standardise how the name of anInputTypeInterfaceclass wants to display it's name
Changed
- Updated validation logic for inputs that have a validator, no default, and are not set
- Throwing
InputValidationFailedExceptionexception when validation fails - Updated
RequiredInputMissingExceptionandRequiredInputMissingValueExceptionexceptions to useInputTypeInterface::getDisplayName()when producing their message - Removed unused
RequiredArgumentMissingExceptionexception
1.1.1
Changed
AbstractInputHandler::find()returns NULL if it cannot find any input with the supplied name. It is easier to test for NULL than it is to catch an exception
1.1.0
Added
- Expanded input types to include
Flag,IncrementingFlag, andLongOption - Added
InputTypeFactoryto help with loading input type classes
Changed
- Updated to work with more than just
ArgumentandOptioninput types. Makes use ofInputTypeFactoryto allow addition of new types as needed
1.0.2
Changed
- Updated example to reflect changes to
manpage()function inpointybeard/helpers-functions-clipackage - Refactoring and improvemnts to
Argument::__toString()andOption::__toString()
1.0.2
Fixed
- Fixed
InputCollection::getArgumentsByIndex()so it returns NULL if the index does not exist instead of throwing an E_NOTICE message
1.0.1
Changed
- Updated example to use
Cli\manpage()provided by thepointybeard/helpers-functions-clipackage
1.0.0
Added
- Initial release