Skip to content

Commit 02d5c3d

Browse files
committed
move DotEnvFilePath out of config
1 parent 06f663b commit 02d5c3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ var (
2323
DispatchConsoleUrl string
2424

2525
DispatchConfigPath string
26-
27-
DotEnvFilePath string
2826
)
2927

3028
func init() {

cli/env_file.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import (
88
"github.com/joho/godotenv"
99
)
1010

11+
var DotEnvFilePath string
12+
1113
func loadEnvFromFile(path string) error {
1214
if path != "" {
1315
absolutePath, err := filepath.Abs(path)

0 commit comments

Comments
 (0)