Documentation ¶
Index ¶
- func Expand(str string, fn Functions) (string, error)
- func ExpandFile(file string, fn Functions) (string, error)
- func GlobMatch(dir string, pattern string) ([]string, error)
- func Run(cmd CommandOptions) (val string, err error)
- func SearchJSON(input string, search string) (data interface{}, err error)
- func SearchYAML(input string, search string) (data interface{}, err error)
- type CommandOptions
- type ExpandOptions
- type Functions
- type Variable
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandFile ¶ added in v0.2.0
ExpandFile and return as a string
func SearchJSON ¶ added in v0.4.2
SearchJSON a jmespath implementation for go
func SearchYAML ¶ added in v0.4.2
SearchYAML converts yaml to JSON and runs a jmespath search
Types ¶
type CommandOptions ¶
type CommandOptions struct { Name string Cmd string Dir string Env []string UseStdOut bool TrimOutput bool }
CommandOptions - new command runner
type ExpandOptions ¶ added in v0.2.0
type ExpandOptions struct {
Functions Functions
}
ExpandOptions to use when expanding a string.
type Functions ¶
Functions template function map
Source Files ¶
Click to show internal directories.
Click to hide internal directories.