prompt

package
v1.0.35-0...-0794924 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Input

func Input(title string, errorMessage string, defaultValue string) string

Input return a simple user input

Types

type SelectConfiguration

type SelectConfiguration struct {
	ActiveTpl    string
	InactiveTpl  string
	SelectPrompt string
	SelectedTpl  string
	DetailsTpl   string
}

SelectConfiguration a complete configuration select options

type SelectItem

type SelectItem struct {
	Title       string
	Description string
	Value       string
}

SelectItem a default item struct

func Select

func Select(items []SelectItem, config SelectConfiguration) SelectItem

Select Returns a selected item

Jump to

Keyboard shortcuts

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