Add TODO to test merge apply policies

This commit is contained in:
Warren Hood 2024-10-09 01:27:42 +02:00
parent 490678db85
commit 24a34e49b5

View file

@ -7,7 +7,7 @@ This is a rather unorganised list of TODOs just so I can somewhat keep track of
### Important ### Important
- [X] Canonicalize relative path args with `profile` commands - [X] Canonicalize relative path args with `profile` commands
- [ ] Add a "merge" apply policy that can merge contents of certain file types. - [X] Add a "merge" apply policy that can merge contents of certain file types.
Eg. toml, json, and anything else that is reasonable (key-value type things... with nesting) Eg. toml, json, and anything else that is reasonable (key-value type things... with nesting)
This should also be able to merge folders, while recursively applying "merge" logic to individual files. This should also be able to merge folders, while recursively applying "merge" logic to individual files.
@ -16,6 +16,7 @@ This is a rather unorganised list of TODOs just so I can somewhat keep track of
merge (with conflict overrides on a file content level) should result in an install dir with A and B, where a.json and b.json are in A, and a.json is the result of merging a.json into the installed a.json (overwriting any existing key's values with the modpack's values), and the original files in folder B untouched (x.json and y.json) merge (with conflict overrides on a file content level) should result in an install dir with A and B, where a.json and b.json are in A, and a.json is the result of merging a.json into the installed a.json (overwriting any existing key's values with the modpack's values), and the original files in folder B untouched (x.json and y.json)
merge (retaining original/modified values) merge should result in an install dir with A and B, where a.json and b.json are in A, and a.json is the result of merging a.json into the installed a.json (retaining the existing values from the file in the install dir), and the original files in folder B untouched (x.json and y.json) merge (retaining original/modified values) merge should result in an install dir with A and B, where a.json and b.json are in A, and a.json is the result of merging a.json into the installed a.json (retaining the existing values from the file in the install dir), and the original files in folder B untouched (x.json and y.json)
- [ ] Test the merge apply policies when I am not half asleep.
### Nice to haves ### Nice to haves