mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-10-05 19:30:59 +00:00
This commit is contained in:
parent
c64bbd5c93
commit
f9befb34a3
11 changed files with 620 additions and 0 deletions
|
@ -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(".")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue