1
0
mirror of https://github.com/go-task/task.git synced 2025-06-15 00:15:10 +02:00

Export Time Struct to Template

This commit is contained in:
Stephen Prater
2019-08-25 13:16:59 -07:00
parent cb6fe4bb59
commit a1aec8178a
11 changed files with 40 additions and 26 deletions

View File

@ -355,7 +355,7 @@ func getEnviron(t *taskfile.Task) []string {
}
environ := os.Environ()
for k, v := range t.Env.ToStringMap() {
for k, v := range t.Env.ToCacheMap() {
environ = append(environ, fmt.Sprintf("%s=%s", k, v))
}
return environ