ask

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 2 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 AskBooleanQuestion added in v1.3.0

func AskBooleanQuestion(message string, storage *bool, defaultValue bool, opts ...survey.AskOpt) error

func AskCommaSeparatedInputQuestion

func AskCommaSeparatedInputQuestion(message string, storage *[]string, defaultValues []string, opts ...survey.AskOpt) error

func AskInputQuestion

func AskInputQuestion(message string, storage *string, defaultValue string, opts ...survey.AskOpt) error

func AskInputQuestionWithSuggestion added in v1.3.0

func AskInputQuestionWithSuggestion(message string, storage *string, defaultValue string, suggest func(toComplete string) []string, opts ...survey.AskOpt) error

func AskMultiSelectQuestion added in v1.3.0

func AskMultiSelectQuestion(message string, defaultValues []string, storage *[]string, options []string, opts ...survey.AskOpt) error

func AskSelectQuestion

func AskSelectQuestion(message string, storage *string, options []string, defaultValue string, opts ...survey.AskOpt) error

Types

type StringSlice

type StringSlice struct {
	// contains filtered or unexported fields
}

https://github.com/AlecAivazis/survey#custom-types

func (*StringSlice) WriteAnswer

func (my *StringSlice) WriteAnswer(name string, value interface{}) error

Jump to

Keyboard shortcuts

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