poddoc/utils/configparser

9 lines
141 B
Bash

#!/usr/bin/env bash
function getValueByKey() {
jq -r ".$1" "${CONFIG}"
}
function getLocalConfValue() {
jq -r ".$2" "$1/config.json"
}