Documentation
¶
Index ¶
- type PromptUiFactory
- type PromptUiFactoryImpl
- func (factory *PromptUiFactoryImpl) RunPrompt(label string, defaultValue string) (string, error)
- func (factory *PromptUiFactoryImpl) RunSelect(label string, items []string) (int, string, error)
- func (factory *PromptUiFactoryImpl) RunSelectWithSize(label string, items []string, size int) (int, string, error)
- func (factory *PromptUiFactoryImpl) RunSelectWithSizeAndSearcher(label string, items []string, size int, searcher func(string, int) bool) (int, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromptUiFactory ¶
type PromptUiFactory interface {
RunPrompt(label string, defaultValue string) (string, error)
RunSelect(label string, items []string) (int, string, error)
RunSelectWithSize(label string, items []string, size int) (int, string, error)
RunSelectWithSizeAndSearcher(label string, items []string, size int, searcher func(string, int) bool) (int, string, error)
}
PromptUiFactory Used to generate necessary prompts injected into services The purpose is to be able to mock this Factory to be used in Unit Tests
type PromptUiFactoryImpl ¶
type PromptUiFactoryImpl struct{}
func (*PromptUiFactoryImpl) RunPrompt ¶
func (factory *PromptUiFactoryImpl) RunPrompt(label string, defaultValue string) (string, error)
func (*PromptUiFactoryImpl) RunSelectWithSize ¶
Click to show internal directories.
Click to hide internal directories.