Documentation ¶
Index ¶
- type InterpreterNotFound
- type Script
- type ScriptManager
- func (m *ScriptManager) AddScript(name, invocation string, contents []byte) (*Script, error)
- func (m *ScriptManager) AllScripts() []*Script
- func (m *ScriptManager) GenerateReferences() map[string]string
- func (m *ScriptManager) GetBase() *Script
- func (m *ScriptManager) GetPrevious() *Script
- func (m *ScriptManager) RemoveAll()
- func (m *ScriptManager) SetBaseScript(invocation string, contents []byte) (*Script, error)
- func (m *ScriptManager) Write() (*Script, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterpreterNotFound ¶
type InterpreterNotFound struct{}
func (*InterpreterNotFound) Error ¶
func (e *InterpreterNotFound) Error() string
type Script ¶
type Script struct { AbsolutePath string Prefix []byte Contents []byte OriginalContents []byte Suffix []byte BinaryPath string CommandLine string EnvReferenceName string Name string ShellScript bool // contains filtered or unexported fields }
func (*Script) AppendCommand ¶
func (*Script) MakeExecutable ¶
func (s *Script) MakeExecutable()
type ScriptManager ¶
type ScriptManager struct {
// contains filtered or unexported fields
}
func NewScriptManager ¶
func NewScriptManager() *ScriptManager
func (*ScriptManager) AddScript ¶
func (m *ScriptManager) AddScript(name, invocation string, contents []byte) (*Script, error)
func (*ScriptManager) AllScripts ¶
func (m *ScriptManager) AllScripts() []*Script
func (*ScriptManager) GenerateReferences ¶
func (m *ScriptManager) GenerateReferences() map[string]string
func (*ScriptManager) GetBase ¶
func (m *ScriptManager) GetBase() *Script
func (*ScriptManager) GetPrevious ¶
func (m *ScriptManager) GetPrevious() *Script
func (*ScriptManager) RemoveAll ¶
func (m *ScriptManager) RemoveAll()
func (*ScriptManager) SetBaseScript ¶
func (m *ScriptManager) SetBaseScript(invocation string, contents []byte) (*Script, error)
func (*ScriptManager) Write ¶
func (m *ScriptManager) Write() (*Script, error)
Click to show internal directories.
Click to hide internal directories.