caad562c11
In order to enable more dynamic use cases such as word-by-word autocomplete and path-based autocomplete, update the autocomplete logic of the Question object and its helper to accept a callback function. This function is called on each keystroke and should return an array of possibilities to present to the user. The original logic only accepted an array, which required implementations to anticipate in advance all possible input values. This change is fully backwards-compatible, but reimplements the old behaviour by initializing a "dumb" callback function that always returns the same array regardless of input. |
||
---|---|---|
.. | ||
Command | ||
CommandLoader | ||
DependencyInjection | ||
Descriptor | ||
EventListener | ||
Fixtures | ||
Formatter | ||
Helper | ||
Input | ||
Logger | ||
Output | ||
Question | ||
Style | ||
Tester | ||
ApplicationTest.php | ||
TerminalTest.php |