Select Git revision
Forked from
GitLab.org / gitlab-runner
8708 commits behind, 25 commits ahead of the upstream repository.
-
Tomasz Maczukin authoredTomasz Maczukin authored
shell_writer.go 807 B
package shells
import "gitlab.com/gitlab-org/gitlab-runner/common"
type ShellWriter interface {
EnvVariableKey(name string) string
Variable(variable common.JobVariable)
Command(command string, arguments ...string)
Line(text string)
CheckForErrors()
IfDirectory(path string)
IfFile(file string)
IfCmd(cmd string, arguments ...string)
IfCmdWithOutput(cmd string, arguments ...string)
Else()
EndIf()
Cd(path string)
MkDir(path string)
RmDir(path string)
RmFile(path string)
Absolute(path string) string
TmpFile(name string) string
MkTmpDir(name string) string
Print(fmt string, arguments ...interface{})
Notice(fmt string, arguments ...interface{})
Warning(fmt string, arguments ...interface{})
Error(fmt string, arguments ...interface{})
EmptyLine()
Finish(trace bool) string
}