mirror of
https://github.com/peridotbuild/pv2.git
synced 2024-11-21 12:41:26 +00:00
21 lines
610 B
Python
21 lines
610 B
Python
#!/usr/bin/python3
|
|
|
|
import argparse
|
|
import pv2.importer as importutil
|
|
|
|
parser = argparse.ArgumentParser(description="Java Portable Importer")
|
|
|
|
parser.add_argument('--name', type=str, required=True)
|
|
parser.add_argument('--giturl', type=str, required=True)
|
|
parser.add_argument('--gitorg', type=str, required=False, default='rpms')
|
|
parser.add_argument('--branch', type=str, required=False, default='')
|
|
results = parser.parse_args()
|
|
classy = importutil.JavaPortableImport(
|
|
results.name,
|
|
git_url_path=results.giturl,
|
|
org=results.gitorg,
|
|
branch=results.branch,
|
|
)
|
|
|
|
classy.pkg_import()
|