# shellcheck shell=dash

___x_cmd_tz_loc(){
    [ $# -gt 0 ] || set -- get
    local op="$1";  shift
    case "$op" in
        set|get)
            ___x_cmd_tz_loc_"$op" "$@"
            ;;
    esac
}

___X_CMD_TZ_LOC_FP="$___X_CMD_ROOT_CFG/loc/default"

___x_cmd_tz_loc_set(){
    ___x_cmd ensurefp "$___X_CMD_TZ_LOC_FP"
    ___x_cmd_tz_id "$@" >"$___X_CMD_TZ_LOC_FP"
}

___x_cmd_tz_loc_get(){
    [ -f "$___X_CMD_TZ_LOC_FP" ] || return
    ___x_cmd rat "$___X_CMD_TZ_LOC_FP"
}

