-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2137 from keboola/petr-hosek-PSGO-859
feat: Add option to download sliced file from staging storage without decompression
- Loading branch information
Showing
21 changed files
with
68 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
remote file download --help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Command "remote file download" | ||
|
||
Download a file from Keboola staging storage and save it to a local file or output to stdout. | ||
|
||
Usage: | ||
kbc remote file download [file] [flags] | ||
|
||
Flags: | ||
--allow-sliced output sliced files as a directory containing slices as individual files | ||
-o, --output string path to the destination file or directory | ||
-H, --storage-api-host string storage API host, eg. "connection.keboola.com" | ||
-t, --storage-api-token string storage API token from your project | ||
--without-decompress do not decompress the downloaded files or sliced files. | ||
|
||
Global Flags: | ||
%A |
Empty file.
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions
1
test/cli/remote-file/download-file-disk-without-decompress/args
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
remote file download %%TEST_FILE_TEST1_ID%% --output file.csv.gz --without-decompress --storage-api-host %%TEST_KBC_STORAGE_API_HOST%% --storage-api-token %%TEST_KBC_STORAGE_API_TOKEN%% |
1 change: 1 addition & 0 deletions
1
test/cli/remote-file/download-file-disk-without-decompress/expected-code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |
1 change: 1 addition & 0 deletions
1
test/cli/remote-file/download-file-disk-without-decompress/expected-stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
%ADownloading%A |
1 change: 1 addition & 0 deletions
1
test/cli/remote-file/download-file-disk-without-decompress/expected-stdout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
File "%%TEST_FILE_TEST1_ID%%" downloaded to "file.csv.gz". |
Empty file.
Empty file.
18 changes: 18 additions & 0 deletions
18
test/cli/remote-file/download-file-disk-without-decompress/initial-state.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"branches": [ | ||
{ | ||
"branch": { | ||
"name": "Main", | ||
"description": "", | ||
"isDefault": true | ||
}, | ||
"configs": [] | ||
} | ||
], | ||
"files": [ | ||
{ | ||
"name": "test1", | ||
"content": "H4sIAAAAAAAAA0vOzzHUSc7PMeIqSwSygASYZQximQAAVQ0b1R0AAAA=" | ||
} | ||
] | ||
} |
Empty file.
Empty file.
1 change: 1 addition & 0 deletions
1
test/cli/remote-file/download-file-disk-without-decompress/out/file.csv.gz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
H4sIAAAAAAAAA0vOzzHUSc7PMeIqSwSygASYZQximQAAVQ0b1R0AAAA= |