feat!: add conflict resolution option to configuration file #76
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.
What was the problem/requirement? (What/Why)
We need to provide a way for users to set their preferences for how file conflicts are resolved during downloads (when downloading files with the same file path or filename that already exist on the local.)
What was the solution? (How)
conflict_resolution
setting to the configuration file.--conflict-resolution
option can still be specified in thedownload-output
CLI command, which will override the config setting if both are present.What is the impact of this change?
Users can now set their preferred method for resolving file conflicts directly in the configuration file, providing a more streamlined user experience.
How was this change tested?
hatch run lint && hatch run test
auto-accept
andconflict-resolution
.auto-accept
True, andconflict-resolution
NOT_SELECTED --> No user prompt, executes default behaviour - CREATE_COPYauto-accept
True, andconflict-resolution
something selected --> No user prompt, executes selected resolutionauto-accept
False, andconflict-resolution
NOT_SELECTED --> No user prompt, executes selected resolutionauto-accept
False, andconflict-resolution
something selected --> User is prompted for resolution, executes selected optionWas this change documented?
No.
Is this a breaking change?
No.