pv2/examples/import_java.py

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()