yiisoft / config

Configuration management
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
31 stars 11 forks source link

Improve config diff logic #47

Closed devanych closed 3 years ago

devanych commented 3 years ago
Q A
Is bugfix?
New feature? ✔️
Breaks BC?
Fixed issues #44

Implemented in this pull request

If the configuration has been changed, a question is asked with three options:

  1. Ignore, do nothing (default if just press ENTER).
  2. Replace the local version with the new version.
  3. Copy the new version of the file with the postfix ". dist".

After this selection, another question will be asked:

Apply this action to all the following files? (yes/no)

This question is only asked once (at the first choice).

When remove a package, will also be asked whether to remove the configuration files.

If you run composer update --no-interaction, nothing will be changed. But after the operation, a list of files that differ will be displayed.

When you run the composer create-project command, no questions will be asked about file changes, but a list of files that were changed to run the application template will be displayed.

samdark commented 3 years ago

Before merge need:

  1. Docs.
  2. Updates in app templates.
samdark commented 3 years ago

Great job 👍