 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func AskMultiline(response any, name, question string, defaultVal string) error
- func AskQuestionWithInput(response any, name, question, defaultVal string, isRequired bool) error
- func MultiSelect(response any, name, question string, options []string, opts ...survey.AskOpt) error
- func Select(response any, name string, question string, options []string, ...) error
- func StubConfirm(result bool) func()
- type AskStubber
- type PromptStub
- type QuestionStub
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var Ask = survey.Ask
    
      View Source
      
  
    var AskOne = survey.AskOne
    
      View Source
      
  
var Confirm = func(result *bool, prompt string, defaultVal bool) error {
	p := &survey.Confirm{
		Message: prompt,
		Default: defaultVal,
	}
	return survey.AskOne(p, result)
}
    Functions ¶
func AskQuestionWithInput ¶
func MultiSelect ¶
func StubConfirm ¶
func StubConfirm(result bool) func()
Types ¶
type AskStubber ¶
type AskStubber struct {
	Asks     [][]*survey.Question
	AskOnes  []*survey.Prompt
	Count    int
	OneCount int
	Stubs    [][]*QuestionStub
	StubOnes []*PromptStub
}
    func InitAskStubber ¶
func InitAskStubber() (*AskStubber, func())
func (*AskStubber) Stub ¶
func (as *AskStubber) Stub(stubbedQuestions []*QuestionStub)
func (*AskStubber) StubOne ¶
func (as *AskStubber) StubOne(value any)
type PromptStub ¶
type QuestionStub ¶
 Click to show internal directories. 
   Click to hide internal directories.