summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-01-11 19:18:59 -0800
committerVito Caputo <vcaputo@pengaru.com>2023-01-11 22:31:31 -0800
commitd72e924a845a2412d2106dc3fe0b9d59fb7faf59 (patch)
tree50796b749e0b167acb0065157257c6d1ad3316d5 /src
parentd14cebc92e76ba005c328b4805a9c9412bb97608 (diff)
til: omit experimental modules from til_module_setup()
Don't make experimental modules available to the regular/potentially-interactive setup routine. There should be a flag like --experimental to generally enable these.
Diffstat (limited to 'src')
-rw-r--r--src/til.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/til.c b/src/til.c
index 44d48eb..c00f6a3 100644
--- a/src/til.c
+++ b/src/til.c
@@ -281,6 +281,9 @@ int til_module_setup(til_settings_t *settings, til_setting_t **res_setting, cons
int r;
for (unsigned i = 0; i < nelems(modules); i++) {
+ if ((modules[i]->flags & TIL_MODULE_EXPERIMENTAL))
+ continue;
+
values[i] = modules[i]->name;
annotations[i] = modules[i]->description;
}
© All Rights Reserved