databricks-cli/cmd
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
..
account Fix rendering of streaming response (#876) 2023-10-17 10:07:55 +00:00
api Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
auth Use profile information when getting a token using the CLI (#855) 2023-10-11 11:12:18 +00:00
bundle Add alias for mlops-stack template URL (#869) 2023-10-16 08:36:01 +00:00
configure Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
fs Remove dependency on global state for remaining commands (#613) 2023-07-27 10:03:08 +00:00
root Ensure profile flag is respected for sync command (#837) 2023-10-09 10:37:18 +00:00
sync Use already instantiated WorkspaceClient in sync command (#867) 2023-10-13 13:04:15 +00:00
version Added description for version command (#737) 2023-09-06 08:41:47 +00:00
workspace Update Go SDK to 0.23.0 and use custom marshaller (#772) 2023-10-16 06:56:06 +00:00
cmd.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00