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

Commit graph

  • c6fe64321e Passing the separator after the array is no longer supported master Norbert Wagner 2023-03-23 08:47:59 +01:00
  • 9622c98258 Removed dev packages from composer.json to avoid circular package dependency version issues and removed example for manpage() method. 1.2.2.2 Alannah Kearney 2019-11-28 03:33:52 +00:00
  • 2d87f04dff Removed version information from composer.json 1.2.2.1 Alannah Kearney 2019-08-06 09:23:59 +10:00
  • 1e903ea6e1 Updated README and CHANGELOG for 1.2.2 release 1.2.2 Alannah Kearney 2019-08-06 09:03:28 +10:00
  • 326a979302 Minor improvement to logic in AbstractInputHandler::validateInput(). Ensures that an input with a validator, but with a default value and no user suplied input, will have the default value used. Alannah Kearney 2019-08-06 09:02:03 +10:00
  • d501a680ff Updated README, CHANGELOG, and composer.json for 1.2.1 release 1.2.1 Alannah Kearney 2019-06-04 23:23:35 +10:00
  • e542f6fd94 Updated InputHandlerFactory and InputTypeFactory to work with changes in pointybeard/helpers-foundation-factory 1.0.2 Alannah Kearney 2019-06-04 23:22:15 +10:00
  • 46b87d3d62 Updated README, CHANGELOG, and composer.json for 1.2.0 release 1.2.0 Alannah Kearney 2019-06-01 22:57:42 +10:00
  • 27c04d1d43 Updated example Alannah Kearney 2019-06-01 22:49:10 +10:00
  • f7a9b66590 Added Argv::findOptionInCollection() and Argv::findArgumentInCollection() wrapper method, which are used in Argv::parse() Alannah Kearney 2019-06-01 22:44:09 +10:00
  • 05d283b6d2 InputCollection now implements Iterator and Countable (implementing required methods). Removed use of $type. Added getItemsExcludeByType(). getItemsByType() and getItems() now returns an Iterator. Renamed append() to add() and added $position flag. Added POSITION_APPEND and POSITION_PREPEND flags. Alannah Kearney 2019-06-01 22:43:19 +10:00
  • 90db5c2047 Added InputTypeFilterIterator class Alannah Kearney 2019-06-01 22:34:32 +10:00
  • 9f5c5c7d4d Made getCollection(), getInput(), find(), and validate() in AbstractInputHandler final. Removed categorising input by type. Abstracted most of validate() into it's own protected method called validateInput(). Removed $skipValidation argument from bind() and relaced with $flags. Added FLAG_BIND_SKIP_VALIDATION, FLAG_VALIDATION_SKIP_REQUIRED, FLAG_VALIDATION_SKIP_CUSTOM, and FLAG_VALIDATION_SKIP_UNRECOGNISED flags. Added check in validate() to look for unrecognised options and arguments. Alannah Kearney 2019-06-01 22:31:59 +10:00
  • 1100d5d959 Removed InputHandlerFactory::FLAG_SKIP_VALIDATION. Passing flags in call to bind() Alannah Kearney 2019-06-01 22:28:20 +10:00
  • 0cbbbdff66 Updated InputHandlerInterface bind() and validate() methods to support flags Alannah Kearney 2019-06-01 22:27:18 +10:00
  • 7069019301 Added UnrecognisedInputException exception Alannah Kearney 2019-06-01 15:09:02 +10:00
  • 302e4378fb Updated README, CHANGELOG, and composer.json for 1.1.4 release 1.1.4 Alannah Kearney 2019-05-27 00:58:51 +10:00
  • 900f9f2885 Fixed misnamed variable in InputCollection::merge() Alannah Kearney 2019-05-27 00:57:09 +10:00
  • ad21e667c3 Updated README, CHANGELOG, and composer.json for 1.1.3 release 1.1.3 Alannah Kearney 2019-05-27 00:24:35 +10:00
  • 419a4a9f79 Code tidy Alannah Kearney 2019-05-27 00:22:25 +10:00
  • 866a2e1c9e Fixed logic bug that prevented $index and $type from getting set when InputCollection::append() is called. Alannah Kearney 2019-05-27 00:22:01 +10:00
  • 32ed646220 Updated README, CHANGELOG, and compose.json for 1.1.2 release 1.1.2 Alannah Kearney 2019-05-25 12:02:35 +10:00
  • 695b4ac75a Updated validation logic for inputs that have a validator, no default, and are not set. Using InputValidationFailedException exception when validation fails Alannah Kearney 2019-05-25 11:59:29 +10:00
  • c5aa26b19d Updated RequiredInputMissingException and RequiredInputMissingValueException exceptions to use getDisplayName() when producing their message Alannah Kearney 2019-05-25 11:58:33 +10:00
  • 50e56a8649 Added InputValidationFailedException exception Alannah Kearney 2019-05-25 11:57:32 +10:00
  • e71ea40616 Removed unused RequiredArgumentMissingException exception Alannah Kearney 2019-05-25 11:57:16 +10:00
  • 4117ed266c Added getDisplayName() method to standardise how the name of an InputTypeInterface class wants to display it's name Alannah Kearney 2019-05-25 11:56:47 +10:00
  • b89f2a6008 Updated README, CHANGELOG, example/example.php, and composer.json for 1.1.1 release 1.1.1 Alannah Kearney 2019-05-24 18:06:57 +10:00
  • 96bf279a70 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. Alannah Kearney 2019-05-24 18:04:00 +10:00
  • a4a8d5e351 Updated README, CHANGELOG, example code, and composer.json for 1.1.0 1.1.0 Alannah Kearney 2019-05-24 17:20:50 +10:00
  • 9e27b52991 Updated to work with more than just Argument and Option input types. Makes use of InputTypeFactory to allow addition of new types as needed. Added InputTypeFactory to help with loading input type classes Alannah Kearney 2019-05-24 17:16:49 +10:00
  • b49ee5559d Expanded input types to include Flag, IncrementingFlag, and LongOption. Refactored Option and Argument types. Alannah Kearney 2019-05-24 17:13:24 +10:00
  • b36bfeac3d Updated README and CHANGELOG for 1.0.3 release 1.0.3 Alannah Kearney 2019-05-24 13:29:08 +10:00
  • 9ac0e21d04 Updated example to reflect changes to manpage() function in pointybeard/helpers-functions-cli package Alannah Kearney 2019-05-24 13:28:34 +10:00
  • 95e93ec1bc Refactoring and improvemnts to Argument::__toString() and Option::__toString() Alannah Kearney 2019-05-24 13:22:35 +10:00
  • 6e987bb4eb Updated README, composer.json, and CHANGELOG for 1.0.2 release 1.0.2 Alannah Kearney 2019-05-23 23:44:52 +10:00
  • 25f3fb8014 Fixed InputCollection::getArgumentsByIndex() so it returns NULL if the index does not exist instead of throwing an E_NOTICE message Alannah Kearney 2019-05-23 23:44:24 +10:00
  • 8d3141c79f Updated README and CHANGELOG for 1.0.1 1.0.1 Alannah Kearney 2019-05-20 22:39:48 +10:00
  • 7c06febefe Updated example to use manpage() provided by the pointybeard/helpers-functions-cli package Alannah Kearney 2019-05-20 22:39:08 +10:00
  • 0620d00f08 Initial commit 1.0.0 Alannah Kearney 2019-05-20 15:08:41 +10:00