Test if dotdrop multiple "import_variables" files work
|
|
||
|---|---|---|
| src | Initial commit | |
| .gitignore | Initial commit | |
| config.yaml | Initial commit | |
| custom.default.yaml | Initial commit | |
| custom.yaml | Initial commit | |
| README.md | Silent rm command | |
dotdrop import_variables test
This project is made as a simple example for dotdrop import_variables multiple files test. When multiple files are mentioned under import_variables in config.yaml it tests whether it takes variable values from all files or just takes the first one.
Run
git clone --depth 1 https://codeberg.org/adnan360/dotdrop-test.git
cd dotdrop-test
rm output/* &>/dev/null ; dotdrop install -p default -f && cat output/somefile.txt
Expected result
Example output:
$ rm output/* &>/dev/null ; dotdrop install -p default -f && cat output/somefile.txt
_ _ _
__| | ___ | |_ __| |_ __ ___ _ __
/ _` |/ _ \| __/ _` | '__/ _ \| '_ |
\__,_|\___/ \__\__,_|_| \___/| .__/ v1.12.9
|_|
-> install ... to ...
1 dotfile(s) installed.
String1: unoverriden value
String2: override value from custom.yaml
The String2 value should say override value from custom.yaml and not default value.