Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestConfig ¶
Types ¶
type MockPrompt ¶
type MockPrompt struct { Executor func(string) Completer func(prompt.Document) []prompt.Suggest // contains filtered or unexported fields }
MockPrompt implements gateway.Prompter
func NewMockPrompt ¶
func NewMockPrompt(iq, sq []string) *MockPrompt
func (*MockPrompt) Input ¶
func (p *MockPrompt) Input() (string, error)
func (*MockPrompt) Run ¶
func (p *MockPrompt) Run()
func (*MockPrompt) SetPrefix ¶
func (p *MockPrompt) SetPrefix(_ string)
func (*MockPrompt) SetPrefixColor ¶
func (p *MockPrompt) SetPrefixColor(_ color.Color) error
type MockRepeatedPrompt ¶
type MockRepeatedPrompt struct { *MockPrompt // contains filtered or unexported fields }
func NewMockRepeatedPrompt ¶
func NewMockRepeatedPrompt(iq [][]string, sq []string) *MockRepeatedPrompt
func (*MockRepeatedPrompt) Input ¶
func (p *MockRepeatedPrompt) Input() (string, error)
Directories ¶
Path | Synopsis |
---|---|
helloworld
Package helloworld is a generated protocol buffer package.
|
Package helloworld is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.