11
0
Fork 0
mirror of https://github.com/n3w/helpers-cli-input.git synced 2025-12-19 12:43:23 +00:00
helpers-cli-input/CHANGELOG.md

59 lines
2.7 KiB
Markdown
Raw Permalink Normal View History

2019-05-20 15:08:41 +10:00
# Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
**View all [Unreleased][] changes here**
## [1.1.3][]
#### Fixed
- Fixed logic bug that prevented `$index` and `$type` from being set in `InputCollection::append()`. This means replaceing items in an `InputCollection` now works as expected.
## [1.1.2][]
#### Added
- Added `InputValidationFailedException` exception
- Added `InputTypeInterface::getDisplayName()` method to standardise how the name of an `InputTypeInterface` class wants to display it's name
#### Changed
- Updated validation logic for inputs that have a validator, no default, and are not set.
- Throwing `InputValidationFailedException` exception when validation fails
- Updated `RequiredInputMissingException` and `RequiredInputMissingValueException` exceptions to use `InputTypeInterface::getDisplayName()` when producing their message
- Removed unused `RequiredArgumentMissingException` exception
## [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`, and `LongOption`.
- Added `InputTypeFactory` to help with loading input type classes
#### Changed
- Updated to work with more than just `Argument` and `Option` input types. Makes use of `InputTypeFactory` to allow addition of new types as needed.
## [1.0.2][]
#### Changed
- Updated example to reflect changes to `manpage()` function in `pointybeard/helpers-functions-cli` package
- Refactoring and improvemnts to `Argument::__toString()` and `Option::__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
2019-05-20 22:39:48 +10:00
## [1.0.1][]
#### Changed
- Updated example to use `Cli\manpage()` provided by the `pointybeard/helpers-functions-cli` package
2019-05-20 15:08:41 +10:00
## 1.0.0
#### Added
- Initial release
[Unreleased]: https://github.com/pointybeard/helpers-functions-cli/compare/1.1.3...integration
[1.1.2]: https://github.com/pointybeard/helpers-functions-cli/compare/1.1.2...1.1.3
[1.1.2]: https://github.com/pointybeard/helpers-functions-cli/compare/1.1.1...1.1.2
[1.1.1]: https://github.com/pointybeard/helpers-functions-cli/compare/1.1.0...1.1.1
[1.1.0]: https://github.com/pointybeard/helpers-functions-cli/compare/1.0.3...1.1.0
[1.0.3]: https://github.com/pointybeard/helpers-functions-cli/compare/1.0.2...1.0.3
[1.0.2]: https://github.com/pointybeard/helpers-functions-cli/compare/1.0.1...1.0.2
2019-05-20 22:39:48 +10:00
[1.0.1]: https://github.com/pointybeard/helpers-functions-cli/compare/1.0.0...1.0.1