1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00

#324 implement dotenv

This commit is contained in:
Chris Garrett
2020-08-03 16:18:38 -06:00
parent e5a3c861cb
commit 8b962fb8e8
13 changed files with 144 additions and 1 deletions

1
testdata/dotenv/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.txt

8
testdata/dotenv/Taskfile-errors1.yml vendored Normal file
View File

@@ -0,0 +1,8 @@
version: '3'
dotenv: ['include1/.env', 'include1/envs/.env', 'file-does-not-exist']
tasks:
default:
cmds:
- echo "INCLUDE1='$INCLUDE1' INCLUDE2='$INCLUDE2'" > include-errors1.txt

9
testdata/dotenv/Taskfile-errors2.yml vendored Normal file
View File

@@ -0,0 +1,9 @@
version: '3'
includes:
include1: './include1'
tasks:
default:
cmds:
- echo "INCLUDE1='$INCLUDE1' INCLUDE2='$INCLUDE2'" > include-errors2.txt

8
testdata/dotenv/Taskfile.yml vendored Normal file
View File

@@ -0,0 +1,8 @@
version: '3'
dotenv: ['include1/.env', 'include1/envs/.env']
tasks:
default:
cmds:
- echo "INCLUDE1='$INCLUDE1' INCLUDE2='$INCLUDE2'" > include.txt

1
testdata/dotenv/include1/.env vendored Normal file
View File

@@ -0,0 +1 @@
INCLUDE1=from_include1

3
testdata/dotenv/include1/Taskfile.yml vendored Normal file
View File

@@ -0,0 +1,3 @@
version: '3'
dotenv: ['.env']

1
testdata/dotenv/include1/envs/.env vendored Normal file
View File

@@ -0,0 +1 @@
INCLUDE2=from_include2