PortValhalla/scripts/Common/Scripts/config.fish

10 lines
264 B
Fish

#!/bin/env fish
function getConfig -S -a property
source "$(status dirname)/eval-module.fish"
evalModule "$CONFIG_MODULE" "$property" $argv[2..]
end
function collectionActive -S -a name
[ "$(getConfig "valhalla.software.$name" --json)" = "true" ]
end