uiutil

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InterruptErr = terminal.InterruptErr

Functions

func Confirm

func Confirm(message string, defaultParam bool) (bool, error)

Confirm is a regular text input that accept yes/no answers.

func Select

func Select(message string, options []string) (int, error)

Select is a prompt that presents a list of various options to the user for them to select using the arrow keys and enter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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