Add support for specifying the destination name pattern

This commit is contained in:
2023-01-17 23:46:36 -08:00
parent 5b1187cf65
commit 95b494e547
2 changed files with 49 additions and 5 deletions

16
main.py
View File

@ -64,6 +64,20 @@ def main():
help="Name of the destination organization"
)
parser.add_argument(
"--destination-repo-name", "--destination-name", "--dest-repo-name", "--dest-name",
dest="destination_repo_name",
default="%N%",
help="Specify the destination repository name(s). Use wildcard %N% anywhere to denote the original name"
)
parser.add_argument(
"--destination-add-topic", "--destination-topic", "-dest-add-topic", "--dest-topic",
dest="destination_topics",
default=[],
action="append",
help="Specify zero or more topics to add to each destination repository"
)
parser.add_argument(
"--no-verify-ssl",
dest="verify_ssl",
@ -85,6 +99,8 @@ def main():
mig.migrate_entire_org(
source_org=args.source_org,
destination_org=args.destination_org,
destination_repo_name=args.destination_repo_name,
destination_topics=args.destination_topics
)