 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var Confirm = func(prompt string, result *bool) error { p := &survey.Confirm{ Message: prompt, Default: true, } return SurveyAskOne(p, result) }
      View Source
      
  
    var SurveyAsk = func(qs []*survey.Question, response interface{}, opts ...survey.AskOpt) error {
	return survey.Ask(qs, response, opts...)
}
    
      View Source
      
  
var SurveyAskOne = func(p survey.Prompt, response interface{}, opts ...survey.AskOpt) error {
	return survey.AskOne(p, response, opts...)
}
    Functions ¶
func StubConfirm ¶
func StubConfirm(result bool) func()
Types ¶
type AskStubber ¶ added in v0.12.0
type AskStubber struct {
	Asks     [][]*survey.Question
	AskOnes  []*survey.Prompt
	Count    int
	OneCount int
	Stubs    [][]*QuestionStub
	StubOnes []*PromptStub
}
    func InitAskStubber ¶ added in v0.12.0
func InitAskStubber() (*AskStubber, func())
func (*AskStubber) Stub ¶ added in v0.12.0
func (as *AskStubber) Stub(stubbedQuestions []*QuestionStub)
func (*AskStubber) StubOne ¶ added in v0.12.0
func (as *AskStubber) StubOne(value interface{})
func (*AskStubber) StubOneDefault ¶ added in v0.12.0
func (as *AskStubber) StubOneDefault()
type PromptStub ¶ added in v0.12.0
type PromptStub struct {
	Value   interface{}
	Default bool
}
    type QuestionStub ¶ added in v0.12.0
 Click to show internal directories. 
   Click to hide internal directories.