prompt

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfirmRunner added in v1.0.9

func GetConfirmRunner() *promptui.Prompt

func GetPromptRunner

func GetPromptRunner(label string, isConfirm bool, valFunc func(s string) error) *promptui.Prompt

Types

type PromptMock added in v1.0.19

type PromptMock struct {
	Msg string
	Err error
}

func (PromptMock) Run added in v1.0.19

func (p PromptMock) Run() (string, error)

type PromptRunner

type PromptRunner interface {
	Run() (string, error)
}

type PromptWrapper added in v1.0.19

type PromptWrapper struct {
	Prompt    *promptui.Prompt
	UserInput string
}

func (*PromptWrapper) Run added in v1.0.19

func (p *PromptWrapper) Run() (string, error)

Jump to

Keyboard shortcuts

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