prompts

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package prompts provides tooling around asking users for questions. This package chooses between "decorative" or "plain" prompts based on the environment variable EMBEDDED_CLUSTER_PLAIN_PROMPTS. See 'decorative' and 'plain' packages for more information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prompt

type Prompt interface {
	Confirm(string, bool) bool
	PressEnter(string)
	Password(string) string
	Select(string, []string, string) string
	Input(string, string, bool) string
}

Prompt is the interface implemented by 'decorative' and 'plain' prompts.

func New

func New() Prompt

New returns a new Prompt.

Directories

Path Synopsis
Package decorative implement decorative prompts using the survey library.
Package decorative implement decorative prompts using the survey library.
Package plain implements prompts using the standard library.
Package plain implements prompts using the standard library.

Jump to

Keyboard shortcuts

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