databricks-cli/cmd/workspace
Pieter Noordhuis f64c44285f
Decode contents by default in workspace export command (#531)
## Changes

Also see #525.

The direct download flag has been removed in newer versions because of
the content type issue.

Instead, we can make the command decode the base64 output when the
output mode is text.

```
$ databricks workspace export /some/path/script.sh
#!/bin/bash
echo "this is a script"
```

## Tests

New integration test.
2023-06-27 20:42:29 +02:00
..
alerts Fixed jobs create command to only accept JSON payload (#498) 2023-06-21 09:25:29 +02:00
catalogs Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
cluster-policies Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
clusters Fixed jobs create command to only accept JSON payload (#498) 2023-06-21 09:25:29 +02:00
connections Fixed jobs create command to only accept JSON payload (#498) 2023-06-21 09:25:29 +02:00
current-user Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
dashboards Fixed jobs create command to only accept JSON payload (#498) 2023-06-21 09:25:29 +02:00
data-sources Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
experiments Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
external-locations Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
functions Fixed jobs create command to only accept JSON payload (#498) 2023-06-21 09:25:29 +02:00
git-credentials Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
global-init-scripts Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
grants Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
groups Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
instance-pools Bump github.com/databricks/databricks-sdk-go from 0.9.1-0.20230614092458-b5bbc1c8dabb to 0.10.0 (#497) 2023-06-21 07:43:07 +00:00
instance-profiles Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
ip-access-lists Fixed jobs create command to only accept JSON payload (#498) 2023-06-21 09:25:29 +02:00
jobs Fixed jobs create command to only accept JSON payload (#498) 2023-06-21 09:25:29 +02:00
libraries Fixed jobs create command to only accept JSON payload (#498) 2023-06-21 09:25:29 +02:00
metastores Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
model-registry Fixed jobs create command to only accept JSON payload (#498) 2023-06-21 09:25:29 +02:00
permissions Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
pipelines Fixed jobs create command to only accept JSON payload (#498) 2023-06-21 09:25:29 +02:00
policy-families Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
providers Bump github.com/databricks/databricks-sdk-go from 0.9.1-0.20230614092458-b5bbc1c8dabb to 0.10.0 (#497) 2023-06-21 07:43:07 +00:00
queries Fixed jobs create command to only accept JSON payload (#498) 2023-06-21 09:25:29 +02:00
query-history Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
recipient-activation Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
recipients Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
repos Add provider detection to the repos create command (#528) 2023-06-27 14:17:13 +02:00
schemas Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
secrets Bump github.com/databricks/databricks-sdk-go from 0.9.1-0.20230614092458-b5bbc1c8dabb to 0.10.0 (#497) 2023-06-21 07:43:07 +00:00
service-principals Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
serving-endpoints Fixed jobs create command to only accept JSON payload (#498) 2023-06-21 09:25:29 +02:00
shares Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
storage-credentials Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
system-schemas Bump github.com/databricks/databricks-sdk-go from 0.9.1-0.20230614092458-b5bbc1c8dabb to 0.10.0 (#497) 2023-06-21 07:43:07 +00:00
table-constraints Fixed jobs create command to only accept JSON payload (#498) 2023-06-21 09:25:29 +02:00
tables Bump github.com/databricks/databricks-sdk-go from 0.9.1-0.20230614092458-b5bbc1c8dabb to 0.10.0 (#497) 2023-06-21 07:43:07 +00:00
token-management Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
tokens Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
users Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
volumes Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
warehouses Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
workspace Decode contents by default in workspace export command (#531) 2023-06-27 20:42:29 +02:00
workspace-bindings Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
workspace-conf Disable shell completions for generated commands (#483) 2023-06-15 14:56:36 +00:00
cmd.go Associate generated commands with command groups (#475) 2023-06-15 14:47:24 +00:00
groups.go Associate generated commands with command groups (#475) 2023-06-15 14:47:24 +00:00