From 2f37c443b8df7263529424870f5e810dabc5fa59 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 16 Jan 2025 15:05:00 +0100 Subject: 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 --- spec/scansion/admins.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 spec/scansion/admins.txt (limited to 'spec/scansion/admins.txt') diff --git a/spec/scansion/admins.txt b/spec/scansion/admins.txt new file mode 100644 index 00000000..db9fa85a --- /dev/null +++ b/spec/scansion/admins.txt @@ -0,0 +1 @@ +admin@localhost -- cgit v1.2.3