Documentation ¶
Overview ¶
Package utils provides utility fns for maru
Package utils provides utility fns for maru
Index ¶
- func DownloadToFile(src string, dst string) (err error)
- func FormatEnvVar(name, value string) string
- func MakeTempDir(basePath string) (string, error)
- func MergeEnv(env1, env2 []string) []string
- func ReadYaml(path string, destConfig any) error
- func TemplateString[T any](setVariableMap variables.SetVariableMap[T], s string) string
- func TemplateTaskActionsWithInputs(task types.Task, withs map[string]string) ([]types.Action, error)
- func UseLogFile() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadToFile ¶ added in v0.2.0
DownloadToFile downloads a given URL to the target filepath
func FormatEnvVar ¶ added in v0.0.2
FormatEnvVar format environment variables replacing non-alphanumeric characters with underscores and adding INPUT_ prefix
func MakeTempDir ¶ added in v0.2.0
MakeTempDir creates a temp directory with the maru- prefix.
func MergeEnv ¶ added in v0.0.2
MergeEnv merges two environment variable arrays, replacing variables found in env2 with variables from env1 otherwise appending the variable from env1 to env2
func TemplateString ¶ added in v0.0.2
func TemplateString[T any](setVariableMap variables.SetVariableMap[T], s string) string
TemplateString replaces ${...} with the value from the template map
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.