1
0
Fork
You've already forked dotdrop-test
0
Test if dotdrop multiple "import_variables" files work
Find a file
2023年02月27日 01:57:51 -08:00
src Initial commit 2023年02月27日 14:48:41 +06:00
.gitignore Initial commit 2023年02月27日 14:48:41 +06:00
config.yaml Initial commit 2023年02月27日 14:48:41 +06:00
custom.default.yaml Initial commit 2023年02月27日 14:48:41 +06:00
custom.yaml Initial commit 2023年02月27日 14:48:41 +06:00
README.md Silent rm command 2023年02月27日 01:57:51 -08:00

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.