dialog

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskToPersistProjectChoice added in v0.22.0

func AskToPersistProjectChoice(server string, projectName string) error

askToPersistProjectChoice asks the user if they want to persist their choice of server and project. If they do, it adds the server and project to the cifuzz.yaml file.

func Confirm added in v0.13.0

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

func Input added in v0.16.0

func Input(message string) (string, error)

func MultiSelect added in v0.5.0

func MultiSelect(message string, items map[string]string) ([]string, error)

MultiSelect offers the user a list of items (label:value) to select from and returns the values of the selected items

func ReadSecret added in v0.13.0

func ReadSecret(message string, file *os.File) (string, error)

func Select

func Select(message string, items map[string]string, sorted bool) (string, error)

Select offers the user a list of items (label:value) to select from and returns the value of the selected item

Types

This section is empty.

Jump to

Keyboard shortcuts

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