prompt

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPromptRunner

func GetPromptRunner(label string, valFunc func(s string) error) *promptui.Prompt

func GetSelectRunner added in v0.1.2

func GetSelectRunner(label string, items []string) *promptui.Select

Types

type PromptRunner

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

type SelectRunner added in v0.1.2

type SelectRunner interface {
	Run() (int, string, error)
}

Jump to

Keyboard shortcuts

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