Skip to content

Commit b6c779c

Browse files
Merge pull request #58 from diegopereiraeng/main
debug env file
2 parents 4a0cfa8 + 8b5b1db commit b6c779c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

plugin.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,18 @@ func writeEnvFile(vars map[string]string, outputPath string) error {
291291
return err
292292
}
293293
fmt.Println("Successfully wrote to .env file")
294+
295+
// Read the file contents
296+
content, err := ioutil.ReadFile(outputPath)
297+
if err != nil {
298+
fmt.Println("Error reading the .env file:", err)
299+
return err
300+
}
301+
302+
// Print the file contents
303+
fmt.Println("File contents:")
304+
fmt.Println(string(content))
305+
294306
return nil
295307
}
296308

0 commit comments

Comments
 (0)