--- a/environment/mapper.go Tue Aug 07 00:02:19 2018 -0500
+++ b/environment/mapper.go Tue Aug 07 00:20:28 2018 -0500
@@ -55,8 +55,9 @@
// Map will return the value matching a KEY=VAL pair in the given environment.
func Map(key string, env []string) string {
- mapper := envMapper{env}
- return mapper.mapVariable(key)
+ val, _ := Mapper(key, env) // Mapper will replace ${TEMPLATE} patterns in the string with the KEY=VAL pairs