You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/changelogs/v4.3.0.rst
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,12 @@ Others
47
47
Enhancements
48
48
************
49
49
50
+
CLI
51
+
===
52
+
- Added methods ``CLI::promptByMultipleKeys()`` to support multiple value in input, unlike ``promptByKey()``. See :ref:`prompt-by-multiple-keys` for details.
53
+
54
+
Others
55
+
======
50
56
- Added the ``StreamFilterTrait`` to make it easier to work with capturing data from STDOUT and STDERR streams. See :ref:`testing-cli-output`.
51
57
- Added the ``PhpStreamWrapper`` to make it easier to work with setting data to ``php://stdin``. See :ref:`testing-cli-input`.
52
58
- Added before and after events to ``BaseModel::insertBatch()`` and ``BaseModel::updateBatch()`` methods. See :ref:`model-events-callbacks`.
Copy file name to clipboardExpand all lines: user_guide_src/source/cli/cli_library.rst
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,17 @@ Named keys are also possible:
72
72
73
73
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.
74
74
75
+
.. _prompt-by-multiple-keys:
76
+
77
+
promptByMultipleKeys()
78
+
======================
79
+
80
+
This method is the same as ``promptByKey()``, but it supports multiple value.
81
+
82
+
.. literalinclude:: cli_library/023.php
83
+
84
+
.. important:: The method ``promptByMultipleKeys()``, unlike ``promptByKey()``, does not support named keys or validation.
0 commit comments