2
0
Эх сурвалжийг харах

src: renamed build_parser_r* methods to build_parser_repo_*, fixed imports

Thomas Waldmann 8 сар өмнө
parent
commit
51d019c1ba

+ 6 - 6
src/borg/archiver/__init__.py

@@ -346,14 +346,14 @@ class Archiver(
         self.build_parser_locks(subparsers, common_parser, mid_common_parser)
         self.build_parser_mount_umount(subparsers, common_parser, mid_common_parser)
         self.build_parser_prune(subparsers, common_parser, mid_common_parser)
-        self.build_parser_rcompress(subparsers, common_parser, mid_common_parser)
-        self.build_parser_rcreate(subparsers, common_parser, mid_common_parser)
-        self.build_parser_rdelete(subparsers, common_parser, mid_common_parser)
-        self.build_parser_rinfo(subparsers, common_parser, mid_common_parser)
-        self.build_parser_rlist(subparsers, common_parser, mid_common_parser)
+        self.build_parser_repo_compress(subparsers, common_parser, mid_common_parser)
+        self.build_parser_repo_create(subparsers, common_parser, mid_common_parser)
+        self.build_parser_repo_delete(subparsers, common_parser, mid_common_parser)
+        self.build_parser_repo_info(subparsers, common_parser, mid_common_parser)
+        self.build_parser_repo_list(subparsers, common_parser, mid_common_parser)
         self.build_parser_recreate(subparsers, common_parser, mid_common_parser)
         self.build_parser_rename(subparsers, common_parser, mid_common_parser)
-        self.build_parser_rspace(subparsers, common_parser, mid_common_parser)
+        self.build_parser_repo_space(subparsers, common_parser, mid_common_parser)
         self.build_parser_serve(subparsers, common_parser, mid_common_parser)
         self.build_parser_tar(subparsers, common_parser, mid_common_parser)
         self.build_parser_transfer(subparsers, common_parser, mid_common_parser)

+ 1 - 1
src/borg/archiver/repo_compress_cmd.py

@@ -155,7 +155,7 @@ class RepoCompressMixIn:
             print(f"Kept as is: {stats_process['kept_count']}")
             print(f"Total: {stats_process['recompressed_count'] + stats_process['kept_count']}")
 
-    def build_parser_rcompress(self, subparsers, common_parser, mid_common_parser):
+    def build_parser_repo_compress(self, subparsers, common_parser, mid_common_parser):
         from ._common import process_epilog
 
         rcompress_epilog = process_epilog(

+ 1 - 1
src/borg/archiver/repo_create_cmd.py

@@ -61,7 +61,7 @@ class RepoCreateMixIn:
             "    borg rspace --reserve 1G"
         )
 
-    def build_parser_rcreate(self, subparsers, common_parser, mid_common_parser):
+    def build_parser_repo_create(self, subparsers, common_parser, mid_common_parser):
         from ._common import process_epilog
 
         rcreate_epilog = process_epilog(

+ 1 - 1
src/borg/archiver/repo_delete_cmd.py

@@ -87,7 +87,7 @@ class RepoDeleteMixIn:
         else:
             logger.info("Would delete cache.")
 
-    def build_parser_rdelete(self, subparsers, common_parser, mid_common_parser):
+    def build_parser_repo_delete(self, subparsers, common_parser, mid_common_parser):
         from ._common import process_epilog
 
         rdelete_epilog = process_epilog(

+ 1 - 1
src/borg/archiver/repo_info_cmd.py

@@ -65,7 +65,7 @@ class RepoInfoMixIn:
 
             print(output)
 
-    def build_parser_rinfo(self, subparsers, common_parser, mid_common_parser):
+    def build_parser_repo_info(self, subparsers, common_parser, mid_common_parser):
         from ._common import process_epilog
 
         rinfo_epilog = process_epilog(

+ 1 - 1
src/borg/archiver/repo_list_cmd.py

@@ -36,7 +36,7 @@ class RepoListMixIn:
         if args.json:
             json_print(basic_json_data(manifest, extra={"archives": output_data}))
 
-    def build_parser_rlist(self, subparsers, common_parser, mid_common_parser):
+    def build_parser_repo_list(self, subparsers, common_parser, mid_common_parser):
         from ._common import process_epilog, define_archive_filters_group
 
         rlist_epilog = (

+ 1 - 1
src/borg/archiver/repo_space_cmd.py

@@ -45,7 +45,7 @@ class RepoSpaceMixIn:
             print("In case you want to change the amount, use --free first to free all reserved space,")
             print("then use --reserve with the desired amount.")
 
-    def build_parser_rspace(self, subparsers, common_parser, mid_common_parser):
+    def build_parser_repo_space(self, subparsers, common_parser, mid_common_parser):
         from ._common import process_epilog
 
         rspace_epilog = process_epilog(