Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SurveyAsk func([]*survey.Question, any, ...survey.AskOpt) error = survey.Ask
SurveyAsk ask questions to be stubbed later.
View Source
var SurveyAskOne func(survey.Prompt, any, ...survey.AskOpt) error = survey.AskOne
SurveyAskOne ask one question to be 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 any)
func (*AskStubber) StubOneDefault ¶
func (as *AskStubber) StubOneDefault()
type QuestionStub ¶
type StubPrompt ¶
Click to show internal directories.
Click to hide internal directories.