(httpClient *http.Client, hostname string, ios *iostreams.IOStreams)
| 16 | ) |
| 17 | |
| 18 | func NewClient(httpClient *http.Client, hostname string, ios *iostreams.IOStreams) *Client { |
| 19 | apiClient := &hostScopedClient{ |
| 20 | hostname: hostname, |
| 21 | Client: api.NewClientFromHTTP(httpClient), |
| 22 | } |
| 23 | return &Client{ |
| 24 | apiClient: apiClient, |
| 25 | io: ios, |
| 26 | prompter: prompter.New("", ios), |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | // TestClientOpt is a test option for the test client. |
| 31 | type TestClientOpt func(*Client) |