feat(deployer): allow disabling backup_config_files #991
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
虽然可以理解
backup_config_files
最初的目的,但目前的生态下,该功能已经没有什么作用了。大部分讲究的用户会用 Plum/Git 等管理配置,再单独「同步」用户词库。这样
backup_config_files
就完全没有用了。而不讲究的用户可能本来就不知道这里有备份。本 PR 在 installation.yaml 中增加一笔
backup_config_files
选项,置为 false 后则不再执行备份操作。默认值也直接改为 false。至于应否设为 true,还待商榷。