Add support for specifying the destination name pattern
This commit is contained in:
16
main.py
16
main.py
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user