Skip to content

Commit 1e04d75

Browse files
authored
Use correct working directory for parsing .terrable.toml file (#29)
1 parent b95979b commit 1e04d75

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package main
33
import (
44
"log"
55
"os"
6-
"path/filepath"
76

87
"github.com/terrable-dev/terrable/config"
98
"github.com/terrable-dev/terrable/offline"
@@ -20,8 +19,8 @@ func main() {
2019
Name: "offline",
2120
Usage: "",
2221
Action: func(cCtx *cli.Context) error {
23-
executablePath, _ := os.Executable()
24-
tomlConfig, _ := config.ParseTerrableToml(filepath.Dir(executablePath))
22+
executablePath, _ := os.Getwd()
23+
tomlConfig, _ := config.ParseTerrableToml(executablePath)
2524

2625
filePath := cCtx.String("file")
2726
moduleName := cCtx.String("module")

terrable_build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = 0.1.3
1+
version = 0.1.4

0 commit comments

Comments
 (0)