Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • ignore-TestPowershell_GetConfiguration-for-all-windows
  • fix-generate-artifacts-metadata-BuildFinishedOn
  • fix-trigger-ubi-images-security-main
  • docs-link-fix
  • ajwalker/new-masking
  • image-pull-policy-for-services
  • dnldnz-parse-tmpdir-path
  • support-image-pull-policy
  • multi-line-command-uncollapsed
  • configure_helper_registry
  • 27853-improve-trace-with-buffered-writes
  • DarwinJS-powershell-information-update
  • k8s-helper-entrypoint-logic
  • k8s-large-configmap-resource
  • dwainaina-docs-add-feature-flag
  • 15-0-stable
  • 21h1-test-machine-idle-limits-failure
  • update-git-lfs-to-2-13-3
  • 21h1-merge-failures
  • v15.0.0
  • v14.8.3
  • v14.10.1
  • v14.9.2
  • v14.10.0
  • v14.9.1
  • v14.9.0
  • v14.8.2
  • v14.7.1
  • v14.6.1
  • v14.8.1
  • v14.8.0
  • v14.7.0
  • v14.6.0
  • v14.6.0-rc1
  • v14.3.4
  • v14.4.2
  • v14.5.2
  • v14.3.3
  • v14.4.1
40 results

shell_writer.go

Forked from GitLab.org / gitlab-runner
8708 commits behind, 25 commits ahead of the upstream repository.
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
}