Documentation ¶
Index ¶
- func GeneratePrompt(pc PromptContent, v func(string) error) promptui.Prompt
- func GetClusterID(t *types.DBInstance) *string
- func InstanceName() *string
- func PromptGetInput(pc PromptContent) string
- func PromptInput(p promptui.Prompt) string
- func RandomStateFileName() *string
- func WriteOutput(filename string, b bytes.Buffer) (int64, error)
- type PromptContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePrompt ¶
func GeneratePrompt(pc PromptContent, v func(string) error) promptui.Prompt
GeneratePrompt generates our prompt UI template
func GetClusterID ¶
func GetClusterID(t *types.DBInstance) *string
GetClusterID get's the clsuter id or nil as a getter this is the only one in helpers because it's needed for the initial load
func InstanceName ¶
func InstanceName() *string
InstanceName generates a new random instance name for when one isn't provided
func PromptGetInput ¶
func PromptGetInput(pc PromptContent) string
PromptGetInput get's the input and then returns it to the prompt
func PromptInput ¶
PromptInput runs the prompt for our command line
func RandomStateFileName ¶
func RandomStateFileName() *string
RandomStateFileName generates a gob file name starting with a UUID
Types ¶
type PromptContent ¶
PromptContent is the struct that let's us have interactive prompts
Click to show internal directories.
Click to hide internal directories.