forked from Backblaze/B2_Command_Line_Tool
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- `b2`, `b2v3` and unstable `_b2v4` scripts and binaries are now built. - Tests are ran against all available versions. - Both unit and integration tests have the ability to limit versions on which given tests are running. - `doc` is built only for the latest stable version. - Implementation moved to `_internal` to discourage people from importing it.
- Loading branch information
1 parent
45e2c43
commit b291298
Showing
93 changed files
with
807 additions
and
246 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ venv | |
doc/source/main_help.rst | ||
Dockerfile | ||
b2/licenses_output.txt | ||
*.spec |
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
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,11 @@ | ||
###################################################################### | ||
# | ||
# File: b2/_internal/_b2v4/__init__.py | ||
# | ||
# Copyright 2023 Backblaze Inc. All Rights Reserved. | ||
# | ||
# License https://www.backblaze.com/using_b2_code.html | ||
# | ||
###################################################################### | ||
|
||
# Note: importing console_tool in any shape or form in here will break sys.argv. |
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,13 @@ | ||
###################################################################### | ||
# | ||
# File: b2/_internal/_b2v4/__main__.py | ||
# | ||
# Copyright 2023 Backblaze Inc. All Rights Reserved. | ||
# | ||
# License https://www.backblaze.com/using_b2_code.html | ||
# | ||
###################################################################### | ||
|
||
from b2._internal._b2v4.registry import main | ||
|
||
main() |
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,57 @@ | ||
###################################################################### | ||
# | ||
# File: b2/_internal/_b2v4/registry.py | ||
# | ||
# Copyright 2023 Backblaze Inc. All Rights Reserved. | ||
# | ||
# License https://www.backblaze.com/using_b2_code.html | ||
# | ||
###################################################################### | ||
|
||
# ruff: noqa: F405 | ||
from b2._internal.console_tool import * # noqa | ||
|
||
B2.register_subcommand(AuthorizeAccount) | ||
B2.register_subcommand(CancelAllUnfinishedLargeFiles) | ||
B2.register_subcommand(CancelLargeFile) | ||
B2.register_subcommand(ClearAccount) | ||
B2.register_subcommand(CopyFileById) | ||
B2.register_subcommand(CreateBucket) | ||
B2.register_subcommand(CreateKey) | ||
B2.register_subcommand(DeleteBucket) | ||
B2.register_subcommand(DeleteFileVersion) | ||
B2.register_subcommand(DeleteKey) | ||
B2.register_subcommand(DownloadFile) | ||
B2.register_subcommand(DownloadFileById) | ||
B2.register_subcommand(DownloadFileByName) | ||
B2.register_subcommand(Cat) | ||
B2.register_subcommand(GetAccountInfo) | ||
B2.register_subcommand(GetBucket) | ||
B2.register_subcommand(FileInfo) | ||
B2.register_subcommand(GetFileInfo) | ||
B2.register_subcommand(GetDownloadAuth) | ||
B2.register_subcommand(GetDownloadUrlWithAuth) | ||
B2.register_subcommand(HideFile) | ||
B2.register_subcommand(ListBuckets) | ||
B2.register_subcommand(ListKeys) | ||
B2.register_subcommand(ListParts) | ||
B2.register_subcommand(ListUnfinishedLargeFiles) | ||
B2.register_subcommand(Ls) | ||
B2.register_subcommand(Rm) | ||
B2.register_subcommand(GetUrl) | ||
B2.register_subcommand(MakeUrl) | ||
B2.register_subcommand(MakeFriendlyUrl) | ||
B2.register_subcommand(Sync) | ||
B2.register_subcommand(UpdateBucket) | ||
B2.register_subcommand(UploadFile) | ||
B2.register_subcommand(UploadUnboundStream) | ||
B2.register_subcommand(UpdateFileLegalHold) | ||
B2.register_subcommand(UpdateFileRetention) | ||
B2.register_subcommand(ReplicationSetup) | ||
B2.register_subcommand(ReplicationDelete) | ||
B2.register_subcommand(ReplicationPause) | ||
B2.register_subcommand(ReplicationUnpause) | ||
B2.register_subcommand(ReplicationStatus) | ||
B2.register_subcommand(Version) | ||
B2.register_subcommand(License) | ||
B2.register_subcommand(InstallAutocomplete) |
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
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
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 |
---|---|---|
@@ -1,13 +1,9 @@ | ||
###################################################################### | ||
# | ||
# File: b2/__main__.py | ||
# File: b2/_internal/_utils/__init__.py | ||
# | ||
# Copyright 2019 Backblaze Inc. All Rights Reserved. | ||
# Copyright 2023 Backblaze Inc. All Rights Reserved. | ||
# | ||
# License https://www.backblaze.com/using_b2_code.html | ||
# | ||
###################################################################### | ||
|
||
from .console_tool import main | ||
|
||
main() |
2 changes: 1 addition & 1 deletion
2
b2/_utils/python_compat.py → b2/_internal/_utils/python_compat.py
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,11 @@ | ||
###################################################################### | ||
# | ||
# File: b2/_internal/b2v3/__init__.py | ||
# | ||
# Copyright 2023 Backblaze Inc. All Rights Reserved. | ||
# | ||
# License https://www.backblaze.com/using_b2_code.html | ||
# | ||
###################################################################### | ||
|
||
# Note: importing console_tool in any shape or form in here will break sys.argv. |
Oops, something went wrong.