ask

package
v1.6.11 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 2 Imported by: 0

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