shells

package
v0.0.0-...-f67a7fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2018 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractShell

type AbstractShell struct {
}

func (*AbstractShell) GetFeatures

func (b *AbstractShell) GetFeatures(features *common.FeaturesInfo)

type BashShell

type BashShell struct {
	AbstractShell
	Shell string
}

func (*BashShell) GenerateScript

func (b *BashShell) GenerateScript(buildStage common.BuildStage, info common.ShellScriptInfo) (script string, err error)

func (*BashShell) GetConfiguration

func (b *BashShell) GetConfiguration(info common.ShellScriptInfo) (script *common.ShellConfiguration, err error)

func (*BashShell) GetName

func (b *BashShell) GetName() string

func (*BashShell) IsDefault

func (b *BashShell) IsDefault() bool

type BashWriter

type BashWriter struct {
	bytes.Buffer
	TemporaryPath string
	// contains filtered or unexported fields
}

func (*BashWriter) Absolute

func (b *BashWriter) Absolute(dir string) string

func (*BashWriter) Cd

func (b *BashWriter) Cd(path string)

func (*BashWriter) CheckForErrors

func (b *BashWriter) CheckForErrors()

func (*BashWriter) Command

func (b *BashWriter) Command(command string, arguments ...string)

func (*BashWriter) Else

func (b *BashWriter) Else()

func (*BashWriter) EmptyLine

func (b *BashWriter) EmptyLine()

func (*BashWriter) EndIf

func (b *BashWriter) EndIf()

func (*BashWriter) Error

func (b *BashWriter) Error(format string, arguments ...interface{})

func (*BashWriter) Finish

func (b *BashWriter) Finish(trace bool) string

func (*BashWriter) GetTemporaryPath

func (b *BashWriter) GetTemporaryPath() string

func (*BashWriter) IfCmd

func (b *BashWriter) IfCmd(cmd string, arguments ...string)

func (*BashWriter) IfCmdWithOutput

func (b *BashWriter) IfCmdWithOutput(cmd string, arguments ...string)

func (*BashWriter) IfDirectory

func (b *BashWriter) IfDirectory(path string)

func (*BashWriter) IfFile

func (b *BashWriter) IfFile(path string)

func (*BashWriter) Indent

func (b *BashWriter) Indent()

func (*BashWriter) Line

func (b *BashWriter) Line(text string)

func (*BashWriter) MkDir

func (b *BashWriter) MkDir(path string)

func (*BashWriter) MkTmpDir

func (b *BashWriter) MkTmpDir(name string) string

func (*BashWriter) Notice

func (b *BashWriter) Notice(format string, arguments ...interface{})

func (*BashWriter) Print

func (b *BashWriter) Print(format string, arguments ...interface{})

func (*BashWriter) RmDir

func (b *BashWriter) RmDir(path string)

func (*BashWriter) RmFile

func (b *BashWriter) RmFile(path string)

func (*BashWriter) TmpFile

func (b *BashWriter) TmpFile(name string) string

func (*BashWriter) Unindent

func (b *BashWriter) Unindent()

func (*BashWriter) Variable

func (b *BashWriter) Variable(variable common.JobVariable)

func (*BashWriter) Warning

func (b *BashWriter) Warning(format string, arguments ...interface{})

type CmdShell

type CmdShell struct {
	AbstractShell
}

func (*CmdShell) GenerateScript

func (b *CmdShell) GenerateScript(buildStage common.BuildStage, info common.ShellScriptInfo) (script string, err error)

func (*CmdShell) GetConfiguration

func (b *CmdShell) GetConfiguration(info common.ShellScriptInfo) (script *common.ShellConfiguration, err error)

func (*CmdShell) GetName

func (b *CmdShell) GetName() string

func (*CmdShell) IsDefault

func (b *CmdShell) IsDefault() bool

type CmdWriter

type CmdWriter struct {
	bytes.Buffer
	TemporaryPath string
	// contains filtered or unexported fields
}

func (*CmdWriter) Absolute

func (b *CmdWriter) Absolute(dir string) string

func (*CmdWriter) Cd

func (b *CmdWriter) Cd(path string)

func (*CmdWriter) CheckForErrors

func (b *CmdWriter) CheckForErrors()

func (*CmdWriter) Command

func (b *CmdWriter) Command(command string, arguments ...string)

func (*CmdWriter) Else

func (b *CmdWriter) Else()

func (*CmdWriter) EmptyLine

func (b *CmdWriter) EmptyLine()

func (*CmdWriter) EndIf

func (b *CmdWriter) EndIf()

func (*CmdWriter) Error

func (b *CmdWriter) Error(format string, arguments ...interface{})

func (*CmdWriter) Finish

func (b *CmdWriter) Finish(trace bool) string

func (*CmdWriter) GetTemporaryPath

func (b *CmdWriter) GetTemporaryPath() string

func (*CmdWriter) IfCmd

func (b *CmdWriter) IfCmd(cmd string, arguments ...string)

func (*CmdWriter) IfCmdWithOutput

func (b *CmdWriter) IfCmdWithOutput(cmd string, arguments ...string)

func (*CmdWriter) IfDirectory

func (b *CmdWriter) IfDirectory(path string)

func (*CmdWriter) IfFile

func (b *CmdWriter) IfFile(path string)

func (*CmdWriter) Indent

func (b *CmdWriter) Indent()

func (*CmdWriter) Line

func (b *CmdWriter) Line(text string)

func (*CmdWriter) MkDir

func (b *CmdWriter) MkDir(path string)

func (*CmdWriter) MkTmpDir

func (b *CmdWriter) MkTmpDir(name string) string

func (*CmdWriter) Notice

func (b *CmdWriter) Notice(format string, arguments ...interface{})

func (*CmdWriter) Print

func (b *CmdWriter) Print(format string, arguments ...interface{})

func (*CmdWriter) RmDir

func (b *CmdWriter) RmDir(path string)

func (*CmdWriter) RmFile

func (b *CmdWriter) RmFile(path string)

func (*CmdWriter) TmpFile

func (b *CmdWriter) TmpFile(name string) string

func (*CmdWriter) Unindent

func (b *CmdWriter) Unindent()

func (*CmdWriter) Variable

func (b *CmdWriter) Variable(variable common.JobVariable)

func (*CmdWriter) Warning

func (b *CmdWriter) Warning(format string, arguments ...interface{})

type PowerShell

type PowerShell struct {
	AbstractShell
}

func (*PowerShell) GenerateScript

func (b *PowerShell) GenerateScript(buildStage common.BuildStage, info common.ShellScriptInfo) (script string, err error)

func (*PowerShell) GetConfiguration

func (b *PowerShell) GetConfiguration(info common.ShellScriptInfo) (script *common.ShellConfiguration, err error)

func (*PowerShell) GetName

func (b *PowerShell) GetName() string

func (*PowerShell) IsDefault

func (b *PowerShell) IsDefault() bool

type PsWriter

type PsWriter struct {
	bytes.Buffer
	TemporaryPath string
	// contains filtered or unexported fields
}

func (*PsWriter) Absolute

func (b *PsWriter) Absolute(dir string) string

func (*PsWriter) Cd

func (b *PsWriter) Cd(path string)

func (*PsWriter) CheckForErrors

func (b *PsWriter) CheckForErrors()

func (*PsWriter) Command

func (b *PsWriter) Command(command string, arguments ...string)

func (*PsWriter) Else

func (b *PsWriter) Else()

func (*PsWriter) EmptyLine

func (b *PsWriter) EmptyLine()

func (*PsWriter) EndIf

func (b *PsWriter) EndIf()

func (*PsWriter) Error

func (b *PsWriter) Error(format string, arguments ...interface{})

func (*PsWriter) Finish

func (b *PsWriter) Finish(trace bool) string

func (*PsWriter) GetTemporaryPath

func (b *PsWriter) GetTemporaryPath() string

func (*PsWriter) IfCmd

func (b *PsWriter) IfCmd(cmd string, arguments ...string)

func (*PsWriter) IfCmdWithOutput

func (b *PsWriter) IfCmdWithOutput(cmd string, arguments ...string)

func (*PsWriter) IfDirectory

func (b *PsWriter) IfDirectory(path string)

func (*PsWriter) IfFile

func (b *PsWriter) IfFile(path string)

func (*PsWriter) Indent

func (b *PsWriter) Indent()

func (*PsWriter) Line

func (b *PsWriter) Line(text string)

func (*PsWriter) MkDir

func (b *PsWriter) MkDir(path string)

func (*PsWriter) MkTmpDir

func (b *PsWriter) MkTmpDir(name string) string

func (*PsWriter) Notice

func (b *PsWriter) Notice(format string, arguments ...interface{})

func (*PsWriter) Print

func (b *PsWriter) Print(format string, arguments ...interface{})

func (*PsWriter) RmDir

func (b *PsWriter) RmDir(path string)

func (*PsWriter) RmFile

func (b *PsWriter) RmFile(path string)

func (*PsWriter) TmpFile

func (b *PsWriter) TmpFile(name string) string

func (*PsWriter) Unindent

func (b *PsWriter) Unindent()

func (*PsWriter) Variable

func (b *PsWriter) Variable(variable common.JobVariable)

func (*PsWriter) Warning

func (b *PsWriter) Warning(format string, arguments ...interface{})

type ShellWriter

type ShellWriter interface {
	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()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL