Software /
code /
prosody
Diff
CHANGES @ 13626:ac60c21015c7
core.configmanager: Add ways to read config values from files
Inspired by something MattJ said
Allows retrieving config values from files which are expected to be
relative to the config directory, extending on the ENV_ method of
retrieving config values from outside the config file.
- FileLine retrieves the first line, stripping any trailing newline
- FileContents reads the whole file
- FileLines reads lines into an array
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 16 Jan 2025 15:05:00 +0100 |
parent | 13527:dba43269db5e |
child | 13627:2db7b3b65363 |
line wrap: on
line diff
--- a/CHANGES Thu Jan 16 11:35:19 2025 +0000 +++ b/CHANGES Thu Jan 16 15:05:00 2025 +0100 @@ -60,6 +60,7 @@ - The configuration file now supports referring and appending to options previously set - Direct usage of the Lua API in the config file is deprecated, but can now be accessed via Lua.* instead +- Convenience functions for reading values from files ## Changes