9 eval "export -- \"$var=\${$var:+\${$var}\${value:+\$sep}}\$value\""
12 add_default_handler
() {
13 case "$(type $1 2>/dev/null)" in
15 *) eval "$1() { return; }"
22 eval "export -- \"$__s_var=\${$__s_var:-\$__s_val}\""
25 _config_add_generic
() {
26 local type="$1"; shift
30 json_add_string
"" "$name"
31 json_add_int
"" "$type"
37 _config_add_generic
5 "$@"
41 _config_add_generic
1 "$@"
45 _config_add_generic
3 "$@"
48 config_add_boolean
() {
49 _config_add_generic
7 "$@"