index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2022-01-02 16:36:50 +0100 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2022-01-02 16:38:02 +0100 |
commit | 240f688ccefa7bddb56efe5bc41a457c96792e42 (patch) | |
tree | 0f38ae348f008b08d002a5789fa48a97ed554478 /archinstall/__init__.py | |
parent | 93aa4aa6cc88462cf2cf4797644086e6879724bf (diff) |
-rw-r--r-- | archinstall/__init__.py | 6 |
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(): """ |