prompts

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Answers added in v0.1.3

type Answers map[string]string

Answers -

type CLIInput added in v0.1.3

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

CLIInput -

type ConfirmInput added in v0.1.3

type ConfirmInput struct {
	Label string
}

ConfirmInput -

func (ConfirmInput) Run added in v0.1.3

func (c ConfirmInput) Run() (string, error)

Run -

type MultiInput added in v0.1.3

type MultiInput struct {
	Label       string
	ValidString string
}

func (*MultiInput) Run added in v0.1.3

func (m *MultiInput) Run() (string, error)

type Prompts added in v0.1.3

type Prompts map[string]CLIInput

Prompts - map of Promptui components

func (Prompts) Run added in v0.1.3

func (p Prompts) Run() Answers

Run - starts the run

type SelectInput added in v0.1.3

type SelectInput struct {
	Label   string
	Options []string
}

func (*SelectInput) Run added in v0.1.3

func (s *SelectInput) Run() (string, error)

type UserInput added in v0.1.3

type UserInput struct {
	Label   string
	Default string
}

func (*UserInput) Run added in v0.1.3

func (u *UserInput) Run() (string, error)

Jump to

Keyboard shortcuts

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