questions

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Question

type Question struct {
	Name        string
	Description string
	Default     string
	Valids      []string
}

Question type

func (Question) Ask

func (q Question) Ask() string

Ask question from input

type Wizard

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

Wizard questions

func (*Wizard) AddQuestion

func (w *Wizard) AddQuestion(q Question)

AddQuestion append question

func (*Wizard) Init

func (w *Wizard) Init()

Init initialized wizard

func (*Wizard) Result

func (w *Wizard) Result(name string) string

Result Get wizard result

func (*Wizard) Start

func (w *Wizard) Start()

Start wizard

Jump to

Keyboard shortcuts

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