Documentation
¶
Index ¶
- Variables
- func AppendProjectEnvToCmdEnv(envMap map[string]string, envList []string) []string
- func CleanGoIdentifier(identifier string) string
- func CreateDirIfDoesNotExist(path string) error
- func ExecuteCommand(cmd *exec.Cmd, pathPrefix string, envars []string)
- func ExecuteCommandOutput(cmd *exec.Cmd, pathPrefix string, envars []string) string
- func GetCwd() string
- func IndentString(content string, spaces int) string
- func ItemInSlice(slice []string, target string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var FuncMap = template.FuncMap{ "Title": strings.Title, "ToLower": strings.ToLower, "CleanGoIdentifier": CleanGoIdentifier, "GenerateUUID": uuid.New, }
@TODO how can we make these type of helpers extensible?
Functions ¶
func AppendProjectEnvToCmdEnv ¶
AppendProjectEnvToCmdEnv will add all the keys and values from envMap into envList as key-value pair strings (e.g.: "key=value")
func CleanGoIdentifier ¶
func CreateDirIfDoesNotExist ¶
func ExecuteCommandOutput ¶
ExecuteCommandOutput runs the command and returns its combined standard output and standard error.
func IndentString ¶
IndentString will Add x space char padding at the beginging of each line.
func ItemInSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.