Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added file subcommands #284

Merged
merged 22 commits into from
Apr 30, 2024
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
36d05ff
added file info, url, cat, upload
adal-chiriliuc-reef Apr 24, 2024
adbb53f
add subcommand to replaced_by_cmd
adal-chiriliuc-reef Apr 25, 2024
e35d1b9
use file subcommands
adal-chiriliuc-reef Apr 25, 2024
09769e6
use file upload subcommand
adal-chiriliuc-reef Apr 25, 2024
bc60f7a
deduplicated and moved _setup_parser method into parent DownloadFileB…
adal-chiriliuc-reef Apr 25, 2024
e7ff9f6
use file download subcommand
adal-chiriliuc-reef Apr 25, 2024
66685c2
add file copy-by-id subcommand
adal-chiriliuc-reef Apr 25, 2024
2d31d7e
use file copy-by-id subcommand
adal-chiriliuc-reef Apr 25, 2024
b0e9f79
file hide subcommand
adal-chiriliuc-reef Apr 25, 2024
8a076fc
fixed typo
adal-chiriliuc-reef Apr 25, 2024
315f77d
fixed typo
adal-chiriliuc-reef Apr 25, 2024
7c94990
added file update subcommand
adal-chiriliuc-reef Apr 25, 2024
df03861
updated tests
adal-chiriliuc-reef Apr 25, 2024
91b5724
updated doc string
adal-chiriliuc-reef Apr 25, 2024
b10f3fb
updated file update doc string
adal-chiriliuc-reef Apr 26, 2024
2895c67
deprecated commands unit tests
adal-chiriliuc-reef Apr 26, 2024
68be0b8
updated doc string
adal-chiriliuc-reef Apr 26, 2024
f54dbd2
fixed hyphen in command name
adal-chiriliuc-reef Apr 26, 2024
3fd6eed
sort command help lines
adal-chiriliuc-reef Apr 26, 2024
b17e93c
workaround to hide command aliases in usage
adal-chiriliuc-reef Apr 26, 2024
aaefec9
deprecated download-url-with-auth and replaced with file url
adal-chiriliuc-reef Apr 29, 2024
e294c7a
deprecate delete-file-version
adal-chiriliuc-reef Apr 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
sort command help lines
adal-chiriliuc-reef committed Apr 26, 2024
commit 3fd6eed039f7a0558ab15a591fbd0d5e49e2a90a
8 changes: 4 additions & 4 deletions b2/_internal/console_tool.py
Original file line number Diff line number Diff line change
@@ -4947,14 +4947,14 @@ class File(Command):

.. code-block::

{NAME} file info b2://yourBucket/file.txt
{NAME} file url b2://yourBucket/file.txt
{NAME} file cat b2://yourBucket/file.txt
{NAME} file upload yourBucket localFile.txt file.txt
{NAME} file download b2://yourBucket/file.txt localFile.txt
{NAME} file copy-by-id sourceFileId yourBucket file.txt
{NAME} file download b2://yourBucket/file.txt localFile.txt
{NAME} file hide yourBucket file.txt
{NAME} file info b2://yourBucket/file.txt
{NAME} file update --legal-hold off b2://yourBucket/file.txt
{NAME} file upload yourBucket localFile.txt file.txt
{NAME} file url b2://yourBucket/file.txt
"""
subcommands_registry = ClassRegistry(attr_name='COMMAND_NAME')