Skip to content

Commit 0983bed

Browse files
committed
add ConfigHandler\getSectionHandler() for conveniently retrieving another section from the same config file
1 parent 8d80b70 commit 0983bed

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

modules/DependencyControl/ConfigHandler.moon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ class ConfigHandler
225225
--return waitTimeout
226226
return false, errors.lockTimeout
227227

228+
getSectionHandler: (section, defaults, noLoad) =>
229+
return @@ @file, defaults, section, noLoad, @logger
230+
228231
releaseLock: (force) =>
229232
if @hasLock or force
230233
@hasLock = false

0 commit comments

Comments
 (0)