fix #121 and #123 - add support for reading env variables from .env (#133)

This commit is contained in:
Casey Lee authored and GitHub committed 2020-03-06 12:30:24 -08:00
1 parent af970769d7
commit 4fde7d8865
14 files changed
+629

No files matched your search

+6
View File
@@ -17,6 +17,7 @@ type Input struct {
dryrun bool
forcePull bool
noOutput bool
envfile string
}
func (i *Input) resolve(path string) string {
@@ -33,6 +34,11 @@ func (i *Input) resolve(path string) string {
return path
}
// Envfile returns path to .env
func (i *Input) Envfile() string {
return i.resolve(i.envfile)
}
// Workdir returns path to workdir
func (i *Input) Workdir() string {
return i.resolve(".")