-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed: Braces processing in the default environment variable values (#6)
- Loading branch information
1 parent
1312145
commit be52919
Showing
10 changed files
with
74 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/make | ||
|
||
.PHONY: test clean | ||
|
||
.ONESHELL: | ||
test: | ||
__JSON_LIST__='{"foo": "bar", "baz": "blah"}' ../../mustpl -f ./give.data.json ./give.template.txt 2> ./stderr.out 1> ./stdout.out | ||
diff -u ./want.stderr.txt ./stderr.out || exit 1 | ||
diff -u ./want.stdout.txt ./stdout.out || exit 1 | ||
|
||
../../mustpl -f ./give.data.json ./give.template.txt 2> ./stderr.out 1> ./stdout.out | ||
diff -u ./want-fallback.stderr.txt ./stderr.out || exit 1 | ||
diff -u ./want-fallback.stdout.txt ./stdout.out || exit 1 | ||
|
||
clean: | ||
-rm -v ./*.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"the_list": ${__JSON_LIST__:-{}}, | ||
"the_value": 12345 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
The list: | ||
|
||
{{#the_list.*}} | ||
- {{ * }}: {{ . }} | ||
{{/the_list.*}} | ||
|
||
{{the_value}} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
The list: | ||
|
||
|
||
12345 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
The list: | ||
|
||
- foo: bar | ||
- baz: blah | ||
|
||
12345 |