options

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Text    string
	Var     string
	Default bool
}

Item represent one of the multiple boolean values prompted to user

type Prompt

type Prompt struct {
	Message string
	Items   []Item
}

Prompt represents a user prompt for a set of individual boolean values

func (Prompt) Execute

func (p Prompt) Execute(context exec.Context) error

Execute prompts user for multiple individual boolean values

func (Prompt) String

func (p Prompt) String() string

Jump to

Keyboard shortcuts

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