aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdulwasiu Apalowo <abdulwasiuapalowo@gmail.com>2022-11-16 08:29:42 +0100
committerAbdulwasiu Apalowo <abdulwasiuapalowo@gmail.com>2023-01-10 14:00:11 +0100
commit116675906c098a31e946bbfe06f4b93da5753f28 (patch)
tree83cd3b6c0639560635b591b642cef1bee6660a3c
parent538587eaed333ff83dd5213d8ce884a92328e493 (diff)
downloadlibvirt-ci-116675906c098a31e946bbfe06f4b93da5753f28.zip
libvirt-ci-116675906c098a31e946bbfe06f4b93da5753f28.tar.gz
libvirt-ci-116675906c098a31e946bbfe06f4b93da5753f28.tar.bz2
commandline: Add projects optional argument
This patch introduces the --projects argument which accepts a glob of lcitool supported projects. It is used with --target argument to generate a Dockerfile and build image from scratch. e.g --projects libvirt* Signed-off-by: Abdulwasiu Apalowo <abdulwasiuapalowo@gmail.com>
-rw-r--r--lcitool/commandline.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lcitool/commandline.py b/lcitool/commandline.py
index b35fe02..50204c3 100644
--- a/lcitool/commandline.py
+++ b/lcitool/commandline.py
@@ -71,6 +71,12 @@ class CommandLine:
full registry paths and tags)",
)
+ container_projectopt = argparse.ArgumentParser(add_help=False)
+ container_projectopt.add_argument(
+ "-p", "--projects",
+ help="list of projects (accepts globs)",
+ )
+
installtargetopt = argparse.ArgumentParser(add_help=False)
installtargetopt.add_argument(
"-t", "--target",