recipeutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptUserForValues

func PromptUserForValues(re *recipe.Recipe) error

func SaveFiles

func SaveFiles(files map[string][]byte, dest string) error

Types

type AskFunc

type AskFunc func(prompt survey.Prompt, opts []survey.AskOpt) (interface{}, error)

NOTE: Since survey.AskOne tries to cast the answer to the type of the response value pointer and the type of response value can not be interface{}, we need to create different ask functions for each response type and return interface{}

Jump to

Keyboard shortcuts

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