(ctx context.Context, writer io.Writer)
| 163 | } |
| 164 | |
| 165 | func (client *httpClient) GetCliConfiguration(ctx context.Context, writer io.Writer) error { |
| 166 | response, err := client.GET(ctx, cliConfigurationEndpoint) |
| 167 | if err != nil { |
| 168 | return err |
| 169 | } |
| 170 | |
| 171 | return copyJSONToWriter(response, writer) |
| 172 | } |
| 173 | |
| 174 | func copyToWriter(response *http.Response, writer io.Writer) error { |
| 175 | defer response.Body.Close() |
nothing calls this directly
no test coverage detected