Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ScriptWrapper ¶
type ScriptWrapper struct {
// contains filtered or unexported fields
}
ScriptWrapper wraps a hook script with env collection and then provides a way to get the difference between the environment before the hook is run and after it
func CreateScriptWrapper ¶
func CreateScriptWrapper(hookPath string) (*ScriptWrapper, error)
CreateScriptWrapper creates and configures a ScriptWrapper. Writes temporary files to the filesystem.
func (*ScriptWrapper) Changes ¶
func (wrap *ScriptWrapper) Changes() (hookScriptChanges, error)
Changes returns the changes in the environment and working dir after the hook script runs
func (*ScriptWrapper) Close ¶
func (wrap *ScriptWrapper) Close()
Close cleans up the wrapper script and the environment files
func (*ScriptWrapper) Path ¶
func (wrap *ScriptWrapper) Path() string
Path returns the path to the wrapper script, this is the one that should be executed
Click to show internal directories.
Click to hide internal directories.