Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/__init__.py')
-rw-r--r--archinstall/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/archinstall/__init__.py b/archinstall/__init__.py
index 865e9844..9d7e238d 100644
--- a/archinstall/__init__.py
+++ b/archinstall/__init__.py
@@ -172,7 +172,11 @@ define_arguments()
arguments = get_arguments()
post_process_arguments(arguments)
-# TODO: Learn the dark arts of argparse... (I summon thee dark spawn of cPython)
+# @archinstall.plugin decorator hook to programmatically add
+# plugins in runtime. Useful in profiles and other things.
+def plugin(f, *args, **kwargs):
+ plugins[f.__name__] = f
+
def run_as_a_module():
"""