WithPrompter is a test option to set the prompter for the test client.
(p iprompter)
| 32 | |
| 33 | // WithPrompter is a test option to set the prompter for the test client. |
| 34 | func WithPrompter(p iprompter) TestClientOpt { |
| 35 | return func(c *Client) { |
| 36 | c.prompter = p |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func NewTestClient(opts ...TestClientOpt) *Client { |
| 41 | apiClient := &hostScopedClient{ |
no outgoing calls