utils

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagValidation

func FlagValidation(inputFilePath string, inputPipe bool, templatePath string, templatePipe bool, outputPath string) error

func GetIncludes

func GetIncludes(inputFiles []interface{}) (map[string]interface{}, error)

func GetInput

func GetInput(file string, pipeFlag bool, printInputFlag bool) (map[string]interface{}, error)

func GetPipedContent

func GetPipedContent() (string, error)

func GetTemplate

func GetTemplate(file string, pipeFlag bool) (string, error)

func GetYamlContentFromFile

func GetYamlContentFromFile(file string) (map[string]interface{}, error)

func GetYamlContentFromString

func GetYamlContentFromString(content string) (map[string]interface{}, error)

func MergeMaps

func MergeMaps(a, b map[string]interface{}) map[string]interface{}

func PasswordPrompt

func PasswordPrompt(label string) string

func RenderInput added in v0.0.5

func RenderInput(input map[string]interface{}) (string, map[string]interface{}, error)

func RenderTemplate

func RenderTemplate(template string, input map[string]any) (string, error)

func UNUSED

func UNUSED(x ...interface{})

func UnmarshalAllYamlDocs

func UnmarshalAllYamlDocs(in []byte, out *[]map[string]interface{}) error

func YesNoPrompt

func YesNoPrompt(label string, def bool) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL