diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-01-11 19:18:59 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-01-11 22:31:31 -0800 |
commit | d72e924a845a2412d2106dc3fe0b9d59fb7faf59 (patch) | |
tree | 50796b749e0b167acb0065157257c6d1ad3316d5 /src | |
parent | d14cebc92e76ba005c328b4805a9c9412bb97608 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |