prompt

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNonInteractive = errors.New("prompt in non-interactive environment")

Functions

func ValidateMinLength

func ValidateMinLength(min int) promptui.ValidateFunc

func ValidateYesNo

func ValidateYesNo() promptui.ValidateFunc

Types

type Prompt

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

func AccountPassphrase

func AccountPassphrase() Prompt

func AccountPrivateKey

func AccountPrivateKey() Prompt

func NewAccountPassphrase

func NewAccountPassphrase() Prompt

func OrganizationDescription

func OrganizationDescription(value string) Prompt

func OrganizationHomepage

func OrganizationHomepage(value string) Prompt

func OrganizationName

func OrganizationName(value string) Prompt

func ReleaseMultiArch

func ReleaseMultiArch() Prompt

func ReleaseTag

func ReleaseTag(value string) Prompt

func RepositoryDescription

func RepositoryDescription(value string) Prompt

func RepositoryHomepage

func RepositoryHomepage(value string) Prompt

func RepositoryName

func RepositoryName(value string) Prompt

func RepositoryURL

func RepositoryURL(value string) Prompt

func (Prompt) Run

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

Run returns the value of the prompt. If a CI environment is detected ErrNonInteractive is returned.

func (Prompt) RunFlag

func (p Prompt) RunFlag(c *cli.Context, flag string) (string, error)

RunFlag returns the value of the flag if set, otherwise the prompt is run normally.

Jump to

Keyboard shortcuts

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