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