Much cleaner build script

This commit is contained in:
Greg Hellings
2023-08-10 23:17:15 -05:00
parent f2c43c3cae
commit dc583c41eb
12 changed files with 171 additions and 8 deletions
-8
View File
@@ -24,14 +24,6 @@ def get_providers():
return providers
def get_builds():
"List of builds as supported in distros/"
base = pathlib.Path(__file__)
distros = base.parent / "distros"
builds = [str(p.stem).rsplit(".", 1)[0] for p in distros.glob("**/*.pkrvars.hcl")]
return builds
def get_parser(args, unsupported=set()):
parser = argparse.ArgumentParser("Builder")
parser.add_argument("--headless", action="store_true")