databricks-cli/internal
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
..
build Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
testdata/import_dir Add workspace import-dir command (#456) 2023-06-12 21:03:46 +02:00
alerts_test.go Update alerts command integration test (#512) 2023-06-22 10:30:52 +02:00
api_test.go Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
clusters_test.go Do not generate prompts for certain commands (#438) 2023-06-05 19:38:45 +02:00
filer_test.go Add filer.Filer implementation backed by the Files API (#474) 2023-06-19 18:29:13 +00:00
fs_cat_test.go Add fs cat command for dbfs files (#430) 2023-06-06 01:16:23 +02:00
fs_cp_test.go Make local files default for fs commands (#506) 2023-06-23 16:07:09 +02:00
fs_ls_test.go Add --absolute flag for ls command (#508) 2023-06-27 16:06:56 +02:00
helpers.go Add fs cp command (#463) 2023-06-16 17:09:08 +02:00
locker_test.go Fix locker unlock for destroy (#492) 2023-06-19 15:57:25 +02:00
mkdir_test.go Add fs mkdirs command for dbfs (#432) 2023-06-12 14:05:56 +02:00
repos_test.go Add provider detection to the repos create command (#528) 2023-06-27 14:17:13 +02:00
rm_test.go Add fs rm command for dbfs (#433) 2023-06-05 23:21:47 +00:00
secrets_test.go Do not prompt for List methods (#411) 2023-05-26 16:02:53 +02:00
sync_test.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
version_test.go Use cmdio in version command for `--output` flag (#419) 2023-06-01 12:03:22 +02:00
workspace_test.go Decode contents by default in workspace export command (#531) 2023-06-27 20:42:29 +02:00