Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigFunc ¶
type ConfigFunc func(*Config)
func WithCustomTemplate ¶
func WithCustomTemplate(w Writer) ConfigFunc
WithCustomTemplate takes a Writer interface that allows you to customise the look and feel of the questions asked.
type Question ¶
type Question struct {
// contains filtered or unexported fields
}
func NewQuestion ¶
func NewQuestion(configs ...ConfigFunc) *Question
NewQuestion returns a Question Client based on the config functional options. Provide additional config functional options to further configure the behavior of the Question client, such as changing the render.
func (*Question) AskForConfirmation ¶ added in v1.1.0
AskForConfirmation asks your question and appends a yes/no response expectation If the answer is no what is expected it prompts the user again with a hint A true|false boolean is returned or an error
Click to show internal directories.
Click to hide internal directories.