From 71c4f47ad6da09a11948a8838e634829ab0b9038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20M=C3=BCller?= <mueller@kip.uni-heidelberg.de> Date: Mon, 22 Jul 2024 17:15:16 +0200 Subject: [PATCH] feat: dynamically check for container variants Change-Id: Id9c0c786ee99013938431032935648223f6e462c --- bin/yashchiki | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/yashchiki b/bin/yashchiki index b9a6a91c..420d5a8b 100755 --- a/bin/yashchiki +++ b/bin/yashchiki @@ -51,9 +51,11 @@ parser = argparse.ArgumentParser( to OUTPUT. """)) +all_styles = list(os.listdir(os.path.dirname(os.path.realpath(__file__)) + "/../share/yashchiki/styles/")) + # mandatory parser.add_argument( - "style", type=str, choices=["visionary", "asic", "f27"], + "style", type=str, choices=all_styles, help="Style of container to build.") parser.add_argument( "spack_dir", type=pathlib.Path, -- GitLab