Documentation
¶
Index ¶
- Constants
- func ClearAll()
- func CreateMirror(path string)
- func ExecPathFile(waitGroup *sync.WaitGroup, useWaitGroup bool, path string, target string)
- func ExecuteScriptLine(ShellToUse string, command string, callback func(string) bool, ...) (int, error)
- func ExecuteTemplateWorker(waitGroup *sync.WaitGroup, useWaitGroup bool, target string, ...)
- func FindTemplate() (string, bool)
- func GetPH(key string) string
- func GetPwdTemplate(path string) (configure.RunConfig, error)
- func GetTemplate() (configure.RunConfig, string, bool)
- func HandlePlaceHolder(line string) string
- func MainExecute()
- func RunTargets(targets string)
- func SetPH(key, value string)
- func WriteTemplate()
Constants ¶
View Source
const ( // ExitOk the process was executed without errors ExitOk = 0 // ExitByStopReason the process stopped because of a defined reason ExitByStopReason = 101 // ExitNoCode means there was no code associated ExitNoCode = 102 // ExitCmdError means the execution of the command fails. a error by the command itself ExitCmdError = 103 )
View Source
const ( // DefaultExecFile is the filename of the script defaut file DefaultExecFile = "/.context.json" // DefaultExecYaml is the default yaml configuration file DefaultExecYaml = "/.contxt.yml" // TargetScript is script default target TargetScript = "script" // InitScript is script default target InitScript = "init" // ClearScript is script default target ClearScript = "clear" // TestScript is teh test target TestScript = "test" // DefaultCommandFallBack is used if no command is defined DefaultCommandFallBack = "bash" )
Variables ¶
This section is empty.
Functions ¶
func ExecPathFile ¶
ExecPathFile executes the default exec file
func ExecuteScriptLine ¶
func ExecuteScriptLine(ShellToUse string, command string, callback func(string) bool, startInfo func(*os.Process)) (int, error)
ExecuteScriptLine executes a simple shell script
func ExecuteTemplateWorker ¶
func ExecuteTemplateWorker(waitGroup *sync.WaitGroup, useWaitGroup bool, target string, templatePath string)
ExecuteTemplateWorker runs ExecCurrentPathTemplate in context of a waitgroup
func FindTemplate ¶
FindTemplate searchs for Template files in different spaces
func GetPwdTemplate ¶
GetPwdTemplate returns the template from current path if exists
func GetTemplate ¶
GetTemplate return current template
func HandlePlaceHolder ¶
HandlePlaceHolder replaces all defined placeholders
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.