Documentation ¶
Index ¶
- func NewCLITest(t *testing.T) *cliTest
- type MockPrompter
- func (m *MockPrompter) AnswerBasic(question string, answer string)
- func (m *MockPrompter) AnswerSelect(question string, expectedOptions []string, answer string)
- func (m *MockPrompter) AssertAllPrompts()
- func (m *MockPrompter) PromptBasic(label string, validator func(input string) error) *string
- func (m *MockPrompter) PromptSelect(label string, items []string) *string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCLITest ¶
Types ¶
type MockPrompter ¶
func (*MockPrompter) AnswerBasic ¶
func (m *MockPrompter) AnswerBasic(question string, answer string)
func (*MockPrompter) AnswerSelect ¶
func (m *MockPrompter) AnswerSelect(question string, expectedOptions []string, answer string)
func (*MockPrompter) AssertAllPrompts ¶
func (m *MockPrompter) AssertAllPrompts()
func (*MockPrompter) PromptBasic ¶
func (m *MockPrompter) PromptBasic(label string, validator func(input string) error) *string
func (*MockPrompter) PromptSelect ¶
func (m *MockPrompter) PromptSelect(label string, items []string) *string
Click to show internal directories.
Click to hide internal directories.