# shellcheck shell=dash

___x_cmd_ws_cat(){
    local x_
    ___x_cmd_ws___searchpath_ . ".x-cmd" || {
        printf ".x-cmd folder not found in the workspace ->  %s\n" "$PWD" >&2
        return 1
    }

    if [ $# -ge 1 ] && [ -f  "$x_/.x-cmd/$1" ]; then
        ___x_cmd_cmds_cat "$x_/.x-cmd/$1"
    else
        ws:error "[Resource Name=$1] not found in the workspace: ${x_}/.x-cmd"
    fi
}
