MCPcopy Create free account
hub / github.com/cli/cli / WithPrompter

Function WithPrompter

pkg/cmd/project/shared/queries/queries.go:35–39  ·  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

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

Callers 1

TestRunViewWeb_TTYFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestRunViewWeb_TTYFunction · 0.74