promptui

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 4 Imported by: 0

Documentation

Overview

Package promptui provides interactive prompts for command-line applications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfirmQuit

func ConfirmQuit() bool

ConfirmQuit reads user input to determine whether to quit.

func Read

func Read(label string, validateFunc promptui.ValidateFunc) (string, error)

Read reads from standard input, specifies the label, the validateFunc, and returns the string.

func WithMinLength

func WithMinLength(minlen int) promptui.ValidateFunc

WithMinLength limits the minimum input length.

Types

This section is empty.

Jump to

Keyboard shortcuts

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