Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SurveyAsk = func(qs []*survey.Question, response interface{}, opts ...survey.AskOpt) error {
return survey.Ask(qs, response, opts...)
}
SurveyAsk ask questions to be stubbed later
View Source
var SurveyAskOne = func(p survey.Prompt, response interface{}, opts ...survey.AskOpt) error {
return survey.AskOne(p, response, opts...)
}
SurveyAskOne ask one question tbe stubbed later
Functions ¶
func SelectRepo ¶
Types ¶
type AskStubber ¶
type AskStubber struct {
Asks [][]*survey.Question
AskOnes []*survey.Prompt
Count int
OneCount int
Stubs [][]*QuestionStub
StubOnes []*StubPrompt
}
func InitAskStubber ¶
func InitAskStubber() (*AskStubber, func())
func (*AskStubber) Stub ¶
func (as *AskStubber) Stub(stubbedQuestions []*QuestionStub)
func (*AskStubber) StubOne ¶
func (as *AskStubber) StubOne(value interface{})
func (*AskStubber) StubOneDefault ¶
func (as *AskStubber) StubOneDefault()
type QuestionStub ¶
type StubPrompt ¶
type StubPrompt struct {
Value interface{}
Default bool
}
Click to show internal directories.
Click to hide internal directories.