mirror of
https://github.com/n3w/helpers-cli-input.git
synced 2025-12-19 12:43:23 +00:00
2.7 KiB
2.7 KiB
Change Log
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
View all Unreleased changes here
[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