From d72e924a845a2412d2106dc3fe0b9d59fb7faf59 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 11 Jan 2023 19:18:59 -0800 Subject: 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. --- src/til.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.3