6 eval "export -- \"$var=\${$var:+\${$var}\${value:+\$sep}}\$value\""
9 add_default_handler() {
10 case "$(type $1 2>/dev/null)" in
12 *) eval "$1() { return; }"
19 eval "export -- \"$__s_var=\${$__s_var:-\$__s_val}\""
22 _config_add_generic() {
23 local type="$1"; shift
27 json_add_string "" "$name"
28 json_add_int "" "$type"
34 _config_add_generic 5 "$@"
38 _config_add_generic 1 "$@"
42 _config_add_generic 3 "$@"
45 config_add_boolean() {
46 _config_add_generic 7 "$@"