1
0
Fork 0
composer/tests/Composer/Test/Fixtures/functional
Stephan Jorek d54f2f21c5
Feature: Add support for autocompleting setting-keys in config-command (#11130)
* Add support for autocompleting setting-keys in config-command

This PR implements the support for autocompletion of setting-keys in the
config-command and its related funtional tests. The implementation takes
existing command-line options like `--unset` or `--global` into account, as
well as existing exposable package-properties. The result is a context-
sensitive auto-completion of individual lists of setting-keys.

Additionally showing the value `suggest.` sub-keys has been allowed in
the config-command, as setting and unsetting them has alwas been possible,
and I did not want to distinguish between showing, setting and unsetting
those keys.

In the setting-key flattening-method I used the `array_is_list()` function,
which was added in PHP 8.1 recently. For backwards PHP-compatiblity the
package `symfony/polyfill-php81` has been added.

Signed-off-by: Stephan Jorek <stephan.jorek@brandung.de>
2022-10-25 16:24:02 +02:00
..
create-project-shows-full-hash-for-dev-packages Full functional test-bed improvements 2021-02-12 11:09:00 +01:00
installed-versions Add allow-plugins config value (#10314) 2021-12-07 23:00:48 +01:00
installed-versions2 Add allow-plugins config value (#10314) 2021-12-07 23:00:48 +01:00
plugin-autoloading-only-loads-dependencies Add test verifying only plugin deps are autoloaded (#10374) 2021-12-20 14:58:55 +01:00
create-project-command.test Full functional test-bed improvements 2021-02-12 11:09:00 +01:00
create-project-shows-full-hash-for-dev-packages.test Full functional test-bed improvements 2021-02-12 11:09:00 +01:00
installed-versions.test Feature: Add support for autocompleting setting-keys in config-command (#11130) 2022-10-25 16:24:02 +02:00
installed-versions2.test Feature: Add support for autocompleting setting-keys in config-command (#11130) 2022-10-25 16:24:02 +02:00
plugin-autoloading-only-loads-dependencies.test Add test verifying only plugin deps are autoloaded (#10374) 2021-12-20 14:58:55 +01:00