Skip to content

Add new method promptByMultipleKeys() in CLI class #6302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Prev Previous commit
Next Next commit
- add the method in docs upgrading v4.3.0
- fix title urderline in user guide
  • Loading branch information
rivalarya committed Jul 27, 2022
commit f7ffeccd22e7f03ac405a1e4c3624a88cb64a58c
6 changes: 6 additions & 0 deletions user_guide_src/source/changelogs/v4.3.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Others
Enhancements
************

CLI
===
- Added methods ``CLI::promptByMultipleKey()`` to support multiple value in input, unlike ``promptByKey()``. See :ref:`prompt-by-multiple-key` for details.

Others
======
- Added the ``StreamFilterTrait`` to make it easier to work with capturing data from STDOUT and STDERR streams. See :ref:`testing-overview-stream-filters`.
- Added before and after events to ``BaseModel::insertBatch()`` and ``BaseModel::updateBatch()`` methods. See :ref:`model-events-callbacks`.
- Added ``Model::allowEmptyInserts()`` method to insert empty data. See :ref:`Using CodeIgniter's Model <model-allow-empty-inserts>`
Expand Down
4 changes: 3 additions & 1 deletion user_guide_src/source/cli/cli_library.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ Named keys are also possible:

Finally, you can pass :ref:`validation <validation>` rules to the answer input as the third parameter, the acceptable answers are automatically restricted to the passed options.

.. _prompt-by-multiple-key:

promptByMultipleKey()
=============
=====================

This method is the same as ``promptByKey()``, but it supports multiple value.

Expand Down