prompt

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCase added in v0.5.0

func CamelCase() promptui.ValidateFunc

func DockerRegistry

func DockerRegistry() string

func GoSuffix

func GoSuffix() promptui.ValidateFunc

func Lowercase

func Lowercase() promptui.ValidateFunc

func MinLengthThree

func MinLengthThree() promptui.ValidateFunc

func NewSelect added in v0.5.0

func NewSelect(label string, selectValues []string) (string, error)

func PositiveInteger added in v0.5.0

func PositiveInteger() promptui.ValidateFunc

func ProtoFileExtension added in v0.6.0

func ProtoFileExtension() promptui.ValidateFunc

func ProtoPackage

func ProtoPackage() string

func ProtoPath added in v0.6.0

func ProtoPath() string

func ProtoServiceName

func ProtoServiceName() string

func ServiceModule

func ServiceModule() string

func ServiceName

func ServiceName() string

func ServiceNamespace

func ServiceNamespace() string

func Validate

func Validate(validators ...promptui.ValidateFunc) promptui.ValidateFunc

Types

type Prompt

type Prompt struct {
	// contains filtered or unexported fields
}

func NewPrompt

func NewPrompt(label, defaultValue string, validateFunc promptui.ValidateFunc) *Prompt

func (*Prompt) Run

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

type Select added in v0.5.0

type Select struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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