MCPcopy
hub / github.com/cli/cli / WithPrompter

Function WithPrompter

pkg/cmd/project/shared/queries/queries.go:34–38  ·  view source on GitHub ↗

WithPrompter is a test option to set the prompter for the test client.

(p iprompter)

Source from the content-addressed store, hash-verified

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

Callers 1

TestRunViewWeb_TTYFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestRunViewWeb_TTYFunction · 0.74