databricks-cli/cmd/account
Pieter Noordhuis 4bf32cb666
Fix rendering of streaming response (#876)
## Changes

The update to the Go SDK v0.23.0 in #772 included a change to make the
billable usage API return its streaming response. This still did not
make the command print out the CSV returned by the API, however. To do
so, we call `cmdio.RenderReader` in case the response is a byte stream.

Note: there is an opportunity to parse the CSV and return JSON if
requested, but that is out of scope for this PR (it is a rather big
customization of the command).

Fixes #574.

## Tests

Manually confirmed that `databricks account billable-usage download` now
returns CSV.
2023-10-17 10:07:55 +00:00
..
access-control Remove dependency on global state in generated commands (#595) 2023-07-25 20:19:07 +02:00
billable-usage Fix rendering of streaming response (#876) 2023-10-17 10:07:55 +00:00
budgets Release v0.202.0 (#619) 2023-07-27 13:23:55 +00:00
credentials Release v0.202.0 (#619) 2023-07-27 13:23:55 +00:00
custom-app-integration Updated Go SDK to 0.22.0 (#831) 2023-10-03 11:46:16 +00:00
encryption-keys Remove dependency on global state in generated commands (#595) 2023-07-25 20:19:07 +02:00
groups Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
ip-access-lists Release v0.202.0 (#619) 2023-07-27 13:23:55 +00:00
log-delivery Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
metastore-assignments Updated Go SDK to 0.22.0 (#831) 2023-10-03 11:46:16 +00:00
metastores Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
networks Release v0.202.0 (#619) 2023-07-27 13:23:55 +00:00
o-auth-enrollment Added `databricks account o-auth-enrollment enable` command (#687) 2023-08-21 16:17:02 +00:00
o-auth-published-apps Updated Go SDK to 0.22.0 (#831) 2023-10-03 11:46:16 +00:00
private-access Release v0.202.0 (#619) 2023-07-27 13:23:55 +00:00
published-app-integration Updated Go SDK to 0.22.0 (#831) 2023-10-03 11:46:16 +00:00
service-principal-secrets Remove dependency on global state in generated commands (#595) 2023-07-25 20:19:07 +02:00
service-principals Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
settings Remove dependency on global state in generated commands (#595) 2023-07-25 20:19:07 +02:00
storage Release v0.202.0 (#619) 2023-07-27 13:23:55 +00:00
storage-credentials Update Go SDK to 0.23.0 and use custom marshaller (#772) 2023-10-16 06:56:06 +00:00
users Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
vpc-endpoints Release v0.202.0 (#619) 2023-07-27 13:23:55 +00:00
workspace-assignment Remove dependency on global state in generated commands (#595) 2023-07-25 20:19:07 +02:00
workspaces Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
cmd.go Update Go SDK to 0.23.0 and use custom marshaller (#772) 2023-10-16 06:56:06 +00:00
groups.go Remove dependency on global state in generated commands (#595) 2023-07-25 20:19:07 +02:00